PSYCLE's home     
     since may 2000
  news / home  files songs boards links all registered members about psycledelics Statistics    
╗ Welcome to -psycledelics-. If this is your 1st visit please read the FAQ - Frequently Asked Questions You must register before you can post here: Please click above on Registration to register yourself. You do not need to register if you only want to read Threads.
Login with Username & Password:

Remember me on this PC.
-psycledelics-DiscussionsTIPS BOARD ╗ Creating patterns from external data
« Previous Thread Next Thread » Show a Printable Version  Send this to a Friend  Add to Favorites
Thread closed
Author
Post
klobouk




Date Registered:
09.2011
Location:

Posts: 5


klobouk ist offline
  Creating patterns from external data        Go on top to this Page

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.

27.09.2011, 12:58 Profile of klobouk Add klobouk to your Buddy-List Email to klobouk
mutilus




Date Registered:
06.2003
Location:
Brighton, England
Posts: 234


mutilus ist offline
         Go on top to this Page


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

27.09.2011, 23:21 Profile of mutilus Add mutilus to your Buddy-List
klobouk




Date Registered:
09.2011
Location:

Posts: 5


klobouk ist offline
         Go on top to this Page

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.

28.09.2011, 06:05 Profile of klobouk Add klobouk to your Buddy-List Email to klobouk
[JAZ]
Psycle Developer



Date Registered:
11.2001
Location:
Balaguer (Spain)
Posts: 1371


[JAZ] ist offline
         Go on top to this Page

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

28.09.2011, 20:04 Profile of [JAZ] Add [JAZ] to your Buddy-List
mutilus




Date Registered:
06.2003
Location:
Brighton, England
Posts: 234


mutilus ist offline
         Go on top to this Page

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

28.09.2011, 20:12 Profile of mutilus Add mutilus to your Buddy-List
klobouk




Date Registered:
09.2011
Location:

Posts: 5


klobouk ist offline
         Go on top to this Page

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.

02.10.2011, 10:26 Profile of klobouk Add klobouk to your Buddy-List Email to klobouk
  « Previous Thread Next Thread »
Thread closed
Jump to:

© 2002-2007 psycledelics | Powered by Woltlab Burning Board v1 Beta4.5e ©2001 Woltlab GbR|Setup & mod for psycledelics by: SAS