-psycledelics- (http://psycle.pastnotecut.org/index.php)
|- TIPS BOARD (http://psycle.pastnotecut.org/board.php?boardid=3)
|-- Creating patterns from external data (http://psycle.pastnotecut.org/threadid.php?boardid=3&threadid=2758)


From klobouk on 27.09.2011, 12:58:

  Creating patterns from external data

I am new to Psycle, and tracking in general*.
I think the tracker format is very cool; I don't have any musical background, but the idea of patterning makes it very easy for me to pick up on what is going on.
I am interested in playing around with converting non-musical patterns into music via algorithm just to see what they would sound like, using completely arbitrary rules of my own devising. Selection of machines I would probably do manually, but notes and tweaks would be entirely dependent upon the original pattern & my parsing rules.
Ideally, I would like to be able to change the rules by which I generate a pattern on-the-fly and retry the newly generated pattern without having to hand-type the whole thing into the pattern interface. Is there any way for me to convert, for instance, a delimited text file into a .psb file, or to enter patterns via command line scripting?

*So, of course, please forgive me if this question is silly or the answer obvious. I have made a good-faith effort to comb the docs and boards for any relevant info.


From mutilus on 27.09.2011, 23:21:

 


Don't think you can send pattern info to psycle via script.

Maybe you could get your code to generate some fancy autohotkey
scripts to send the keypresses to psycle that do what you want to set
up your pattern.

But.. you're probably better off with something like supercollider
or pd if you're doing generative music.


__________________
github.com/hexmodemusic | soundcloud.com/hexmodemusic


From klobouk on 28.09.2011, 06:05:

 

Thank you for the recommendations, mutilus.
I've taken a look at the websites for both, and they seem very promising, particularly PD. I'm leaning away from SuperCollider because I like to support fully open source software and because (pardon the contradiction) I'd like to be able to run whatever I'm using on a Windows box without mucking around with a virtual machine.
Unfortunately, my knowledge of music is essentially nonexistent (e.g., notes, octaves, etc) and my programming skills still leave something to desired. I want to avoid getting in over my head too quickly and burning out on the project. Both PD and SC look like they require quite a bit more DIY from the get-go. I'm thinking that I'll mostly stick with Psycle until I get the hang of song structure and some other basics. I'm really enjoying the Psycle interface and the ease with with I can just jump in and fiddle around.
I considered the idea of simulating keystrokes, but I imagine that, assuming I decide to continue pursuing the idea of generative music with Psycle, I can find a simpler way. I haven't poked around in them much yet, but the .psbs seem to have a pretty straightforward structure. Converting plaintext to .psb wouldn't be hard if I knew how the notation translated (*cough* devs?).
Anyhow, thanks again for the suggestion.


From [JAZ] on 28.09.2011, 20:04:

 

psb format is:

first 32bits is an int which means number of tracks
next 32bits is an int which means number of lines

From here, it reads each entry in the following way:

for each track do
for each line do
read entry


An entry is 5 bytes.

first byte is the note . Notes go from 0 (C-0) to 119 (B-9). Value 120 is noteoff, value 121 is tweak. Value 255 means empty.

Second byte is the aux column. Value 255 means empty.

Third byte is the machine column. Value 255 means empty.

Fourth and fifth bytes are the command and parameter column. Use zero as no value.

So, the file can be understood to be like this (translation from binary):

16, 64, C-4-255-01-00-00, 255-255-255-0-0, A-3-255-01-00-00, ....

Note: .psy files can be opened by doubleclicking on them, but .psb extension is not registered with Psycle (and I believe it's a valid extension for some files of photoshop), but if the extension is registered with Psycle, it will not be recognized (it doesn't expect a .psb).

So the only way to load .psbs is via the open dialog and selecting the filter as .psb.


__________________
<[JAZ]> Pa pi pa pa pa pi pa.... ;·D


From mutilus on 28.09.2011, 20:12:

 

Yep psycle is a lot more user friendly than sc/pd for sure.

I'll be interested in any progress you make with generative music in psycle..


__________________
github.com/hexmodemusic | soundcloud.com/hexmodemusic


From klobouk on 02.10.2011, 10:26:

 

Thanks a million for your help, [JAZ]. That's exactly the sort of thing I was looking for, and it would have taken quite a while to figure out through trial and error.

mutilus, it's been a busy week for me and I haven't had a chance to play around with this at all, but when I do start making some progress I'll be sure to share on the boards.

Powered by: Burning Board 1.0 Beta 4.5eEnglish Translation by AnnaFan
Copyright © 2001 by WoltLab