Jump to content


Photo

Xrns-php


  • This topic is locked This topic is locked
90 replies to this topic

#51 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 06 November 2007 - 19:13

1. There is no XRNI schema checking. gnute tries to validate an XRNI against the XRNS schema.
2. ZipAllFiles() doesn't throw any exceptions and the function call is not in a try/catch block. Currently, if ZipAllFiles() fails the temp dir is not removed.
3. While file_put_contents silently overwrites existing files, ZipAllFiles() is hardcoded to fail when attempting to overwrite a file. We should find an elegant solution like a checkbox in XRNS-SF to allow or disallow overwriting.


1. OK, the latest schemas are uploaded, but there is no xrni_xsd_check function or even better, a generic renoise schema check function.

2. All global XRNS functions should throw an exception on fail instead of dying explicitely. The script author has to catch the exception and proceed to clean up any temporary files. Do we need a custom exception class or can we just use the generic class Exception?

3. Dunno how to solve this one.

#52 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 06 November 2007 - 20:01

Exception class works for me.

Also, as most scripts are over 60% argument verification, unziping, and zipping, it would be nice to have a xrns_php() class that encapsulates all that stuff.

Using xrns_ogg.php as an example, something like:


try {
	
	$ogg = new xrns_php();
	
	// first variable, $argv[] array position
	// if second variable, this is a bool (true or false)
	// if third variable, this is a forced default if second variable bool is false
	
	$argv1 = $ogg->argv(1, $ogg->valid_extensions($ogg->argv(1), array('zip', 'xrns', 'xrni')));
	$argv2 = $ogg->argv(2, $ogg->valid_extensions($ogg->argv(2), array('zip', 'xrns', 'xrni')));  
	$quality = $ogg->argv(3, (ctype_digit($ogg->argv(3)) && $ogg->argv(3) > 0 && $ogg->argv(3) <= 10), 3);	
	
	// Input
	$song1 = $ogg->input($argv1);
	
	// ----------------------------------------------------------------------------
	// The meat/tofu of xrns_ogg
	// ----------------------------------------------------------------------------	
	
	// SampleData directory
	if (is_dir($song1->dir . 'SampleData/')) {
		// Xrni or Xrns?
		if (preg_match('/(\.xrni$)/i',$song1->filename)) {
			
			$source = $song1->dir . 'SampleData/';
			ogg_files($source, $quality);
			
		}
		else foreach(new DirectoryIterator($song1->dir . 'SampleData/') as $file) {
			
			if ($file == '.' || $file == '..') continue; // Skip these files
			
			$source = $song1->dir . 'SampleData/' . $file;
			if (is_dir($source)) ogg_files($source, $quality);
			
		}
	}
	
	// Output
	$ogg->output($argv2, $song1->dir);		
	
}
catch (Exception $e) {
	xrns_php::complain_and_cleanup($e);
	die();
}

Edited by Conner_Bw, 06 November 2007 - 20:10.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#53 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 06 November 2007 - 21:04

Funny that you should mention it. I was afraid to mention a XRNS-PHP class because I thought it would be overkill. Well, we seem to agree that such a class would be useful.

A different matter: about the XRNS-SF package. How about including the latest stable scripts?

#54 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 06 November 2007 - 23:39

A different matter: about the XRNS-SF package. How about including the latest stable scripts?


Is everything in CVS stable?

I can package something with what's there

Can you update the webpage?

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#55 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 06 November 2007 - 23:47

I just commited a small clean-up for xrns2mid and the descriptions mod for xrns_ogg, but those haven't been thoroughly tested. Would be cool if you could verify the stuff I changed on mac. Dunno about the rest.

Using TortoiseCVS, I just wasted a lot of time fixing sticky dates. And now xrns2midi.php has somehow become read-only. :(

Before packaging, I want to have global functions throw exceptions and scripts catching them, a better message for the flac warning and an option to force overwriting for ZipAllFiles. The latter means the cfg-files for some scripts have to be updated with an extra option. The parsing could be done by the ZipAllFiles function.

#56 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 07 November 2007 - 00:26

Ok, i'll let you make the changes then.

Everything I have tested works fine. Will check some more later.

Keep me posted.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#57 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 16 March 2008 - 19:27

Updated to 1.06, shift-reload:

http://xrns-php.sourceforge.net/

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#58 rdewaele

rdewaele

    New Member

  • Normal Members
  • Pip
  • 8 posts

Posted 24 November 2008 - 11:27

Hi Guys,

Anyone else noticed that XRNS songs created with Renoise 2.0 are not compatible with Xrns-php , at least the merger module seems to fail to work with renoise 2.0 songs....

Any ideas ? Anyone... Help... I'm stuck here.....


Feedback would be highly appreciated !

thanks

#59 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 24 November 2008 - 13:30

The XRNS-PHP scripts have to be updated to accomodate for Renoise 2.0. However, due to a general lack of interest, I doubt it will happen anytime soon. Ofcourse, you are welcome to learn PHP and fix the problem.

#60 rdewaele

rdewaele

    New Member

  • Normal Members
  • Pip
  • 8 posts

Posted 24 November 2008 - 13:47

Well.... that's the problem... I'm no programmer.....
Too bad. I really am a frequent user of the scripts, escpecially the merger script , which I use to combine several trax for live purposes....

Any volunteers / programmers ? :)

Maybe another question for the Renoise Developpers : An option to save renoise 2.0 trax as renoise 1.9 or older versions would be of great help too !

Taktik? :dribble:

Edited by rdewaele, 24 November 2008 - 13:49.


#61 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 24 November 2008 - 15:31

Maybe another question for the Renoise Developpers : An option to save renoise 2.0 trax as renoise 1.9 or older versions would be of great help too !


That's 100% not going to happen. Why would you want that anyway?

#62 rdewaele

rdewaele

    New Member

  • Normal Members
  • Pip
  • 8 posts

Posted 24 November 2008 - 16:08

well , in this way I would still be able to merge trax I wrote in 1.9 with trax created in 2.0
...

I'm desperate :)

#63 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 24 November 2008 - 17:16

ANGER LEVELS RISING, THEY KEEP PULLING ME BACK IN... :(

1) Open source; when there's a problem describe it in detail. The fact that you didn't just wasted my time. What is the problem? No one knows. Your description was not at all helpful. HI, PROBLEM! HELP? is useless. The icing on the cake that you are unwilling to fix free software yourself. Desperate, but unwilling. This is even more frustrating.

2) I just did some tests, merge scripts works fine. There's a warning because of a missing schema. That's a warning. We are in beta. The schemas aren't finalized. That's normal. Ideally, no one is touching XRNS-PHP until 2.0 FINAL is released. I personally won't work on XRNS-PHP until 2.0 FINAL which is a few months away. RC candidates are not enough for me to justify doing free stuff unless it personally affects me. Others are more than encouraged to submit patches. That's why it's open source. That's why it's in a scripting language.

3) You can't merge 1.9 songs with 2.0 songs. You can't merge 1.8 songs with 1.9 songs. This is not new. Save your old songs in the new way. Upgrade them to LBP mode. The merge script will work fine as far as I can tell. If it doesn't? Actual details of problem welcome. Patches welcome.

Had you posted actual details about I could have fixed your problem without ranting. Silently, and happily, magic in the CVS for my own personal enjoyment. The fact that you didn't, well you get this, and a bonus redirect to this thread.

For real as this time I feel I've covered my bases now. See you in 2009. Peace.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#64 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 24 November 2008 - 17:31

How to prevent a stomach ulcer:

/etc/hosts: 127.0.0.1 renoise.com
$ sudo niload -v -m hosts . < /etc/hosts

:)

#65 rdewaele

rdewaele

    New Member

  • Normal Members
  • Pip
  • 8 posts

Posted 24 November 2008 - 18:27

ANGER LEVELS RISING, THEY KEEP PULLING ME BACK IN... :(

1) Open source; when there's a problem describe it in detail. The fact that you didn't just wasted my time. What is the problem? No one knows. Your description was not at all helpful. HI, PROBLEM! HELP? is useless. The icing on the cake that you are unwilling to fix free software yourself. Desperate, but unwilling. This is even more frustrating.

2) I just did some tests, merge scripts works fine. There's a warning because of a missing schema. That's a warning. We are in beta. The schemas aren't finalized. That's normal. Ideally, no one is touching XRNS-PHP until 2.0 FINAL is released. I personally won't work on XRNS-PHP until 2.0 FINAL which is a few months away. RC candidates are not enough for me to justify doing free stuff unless it personally affects me. Others are more than encouraged to submit patches. That's why it's open source. That's why it's in a scripting language.

3) You can't merge 1.9 songs with 2.0 songs. You can't merge 1.8 songs with 1.9 songs. This is not new. Save your old songs in the new way. Upgrade them to LBP mode. The merge script will work fine as far as I can tell. If it doesn't? Actual details of problem welcome. Patches welcome.

Had you posted actual details about I could have fixed your problem without ranting. Silently, and happily, magic in the CVS for my own personal enjoyment. The fact that you didn't, well you get this, and a bonus redirect to this thread.

For real as this time I feel I've covered my bases now. See you in 2009. Peace.


Gee. Who's having a rotten day here?

1. As far as I know, no one forced you to answer my question. I'm not a programmer , just a registererd renoise lover. Unwilling? I'M NOT A PROGRAMMER. I DON'T KNOW SQUAT ABOUT PHP OR XML so I can't exactly describe what is wrong now can I ? I only noticed the trax wouldn't merge....
I was only trying to find out if anyone had encountered this problem as well and if anyone could give me some advice.

2. I Didn't expect anyone to start programming at once for me at all. THIS IS MERELY A QUESTION TO OTHER USERS. I was assuming one of the purposes of a "discussion board" or "forum" is to exchange tips & tricks with others. After this I might have to reconsider about ever posting a question again.
Lately it seems a lot of boards and forums are diseased.

3. I DO highly appreciate free software and open source projects. You might also see my question as an opportunity for others to look into the problem and maybe even anticipate on the new renoise 2.0 track XML structure, or are you - Mister Conner_Bw - the one and only emperor of open-source? You reply suggests something in that direction.

quote : "1) Open source; when there's a problem describe it in detail. The fact that you didn't just wasted my time. "

4. Thanks for your reply and assistance. And for your precious time.

#66 Transcender

Transcender

    Big Masta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPip
  • 575 posts

Posted 24 November 2008 - 18:50

Gee. Who's having a rotten day here?

It's probably just Conner's default mode of communication, talking to people by adding a slight edge of anger. Why he does this I don't really know. But since that behaviour is constantly reinforced by all these postmodern-subjectivist-nihilist speedcore hippies who crowd this board, we'll just have to live with that.
If you wrestle with a pig, it matters not whether you win or loose, because you both end up covered in mud, and the pig likes it.

#67 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 24 November 2008 - 21:07

Your reply still has not explained your problem.

Can you please, in detail, post what isn't working? A long boring explanation of what isn't working? And compare it to my answers? Someone will gladly look at it if it isn't an ambiguous stab in the dark. If you are using XRNS-SF on Windows click SHOW CONSOLE and go from there.

an opportunity for others to look into the problem and maybe even anticipate on the new renoise 2.0 track


Yes, I agree 100% I'd be more than thrilled if others would look at it. I encourage others to look at it. Improve the project. Take over the project. Do whatever they want!

The beauty of open source is that we don't have to get along to get things done.

The reality, at least in Renoise, is there are a lot of beggars, a lot of talkers, not a lot of contributors. Even when they have more than enough incentive to at least try...

I hope it works out for you, regardless of my attitude. Good luck.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#68 choice

choice

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2312 posts
  • Gender:Male

Posted 26 November 2008 - 03:42

i swear i posted in this thread.

i had no issues with merge a week or so ago with 2.0. and it was the first time i used the xrns-php stuff.
i used a bunch of the scripts too. and,

i was/am still _thoroughly_ imprrressed.

i don't think there is any other audio software that isn't already based on user-coding that can do this.

#69 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 14 March 2009 - 17:50

Long story short long (VOKUHILA?) I started a new job and am using SVN more than CVS these days.

Basically, I'm 10 years behind? So, while everyone is jumping on the GIT train i'm moving to SVN in my day to day activities.

I'd like to migrate the XRNS-PHP project from CVS to SVN.

If you're like me (a stuborn CVS user) here's some quick reading to understand the fundamental differences between CVS and SVN:

* http://svnbook.red-b...svn.forcvs.html
* http://svn.collab.ne...-practices.html

What this entails?

* Migration from CVS to SVN (I can do this, I recently did it for Sux0r and have the process locked down)
* Changes to XRNS-SF to download from SVN instead of CVS (Can't someone else do it?)
* Developers commit to SVN instead of CVS (Everybody do it)

Any objections?

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#70 danoise

danoise

    Probably More God or Borg Than Human Member

  • Renoise Team
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6041 posts
  • Gender:Male
  • Interests:wildlife + urban trekking

Posted 25 March 2009 - 01:38

(Connor explained how to use CVS for me, a first time user, a year ago)

Tracking with Stuff. API wishlist | Soundcloud


#71 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 03 July 2009 - 22:28

I went ahead and migrated all the scripts from CVS to SVN.

By the end of the weekend I hope to repackage XRNS-SF to reflect these changes. I will also package all the latest changes to XRNS-SCRIPTS. Both will be named 1.07

I think I will include the scripts in the frontend, and remove the .cmd script altogether. I will update the docs to show how one can checkout SVN trunk, in case someone wants the latest versions.

Suggestions?

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#72 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 04 July 2009 - 07:14

An update of php.exe and php5ts.dll taken from the current PHP distribution might be a good idea. If you remove the CVS support, you can also delete the cvs.exe in the tools folder. Maybe there is something similar for SVN... a little commandline app, which can be used in a new .cmd file?

#73 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 07 July 2009 - 02:05

1.07 has been released.

http://xrns-php.sourceforge.net/
https://sourceforge....jects/xrns-php/

Good times.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#74 s-n-s

s-n-s

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2029 posts
  • Gender:Male

Posted 08 August 2009 - 16:03

these tools rock

i have just recently started using Rigen to make ALOT of breaks samples into renoise instruments

its soo much fun

thank you to the people who made these tools available

Subbase - Danish Dark DnB


#75 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 21 April 2010 - 22:37

XRNS-PHP and XRNS-SF 1.08 have been released.

Changes:
Fixed the XRNS2MIDI and XRNS_MERGE scripts to work with Renoise 2.5, unmaintained scripts are now in a separate "_deprecated_" directory, minor optimizations and bug fixes.

Shift-reload, grab it here:
http://xrns-php.sourceforge.net/

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »