Back to blue

After a long time away trying other platforms, I am back to Csound and blue and enjoying it more than ever. FMain Street was the 1st thing I did when coming back to blue. It is on the Podcast here at http://www.csounds.com/node/502

FMILY

I posted a new song FMILY on the podcast today. This song marks my new direction with Csound and blue, using Jython and the Python Soundobject for composition rather than the various other methods I have attempted. As a beginner with Python and algorithmic composition I would be glad to hear from others on the topic, particularly if they are also using blue and Jython.

http://www.csounds.com/node/505

I noticed something called

I noticed something called mooedit that was renamed medit that has python (they called it pythony) and lua installed (along with something called mooscript) that is multi-platform (I would double check that) that gives you control of both the input window and the output as well as the ability to add tools to the menu... It would be a little work but looks like it could be very useful as an allgoritmic composition tool.. (as well as a very nice csound editor)

medit

Medit looks ok, but I am comfortable with blue and will probably stick with it. blue has Python built in (Jython), with some AC libraries (Pmask and Stephen's Orchestral Library), and can also just call the real Python interpreter as an external program. Other AC possibilities I have looked into are Common Music (Grace) and AthenaCL.

I should probily go through

I should probily go through the tutorial and see if I can come up with a suggestion to simplify it.. Seems like you should be able to use something like that without reading the instructions :) But I am having alot of fun putting other stuff together. I did try to get an instrument from version 2 to see if I could export port it but I don't think it is ready for that yet..

Pmask

I guess you are referring to Medit here. I did not actually try it myself. At the moment my main interest is trying to figure out how to integrate my own code with Pmask to create compositional tools. My 1st project is attempting to do something like a looping drum machine using Pmask List commands. I have been looking at Jacob Joaquin's dseq language for some ideas. Of course I have lots of ideas, my problem is lack of Python knowledge and programming skill.

pmask seemed like a hard way

You can probily write a parser for the p values to get the total number of columns and then loop through and do your math or whatever once a line if that fits with your design goal. pmask seems very complex and I am not sure why I would want to use it.

outfile = open('outfile.txt','w')
outfile.write(str(data + ' ')) #your space is just

you will needs some string commands like
.split(' ') this will split the string in question by whatever is in the quotes

kiss (keep it simple stupid or silly after microsoft started to make the real bucks)
I think it is easier to do it outside of csound itself and generate the score you want based on your external language and python is a good choice for that because it chews up text. You would also want to try to avoid using the re commands if you can and there is a saying from the python boards that goes "so you have a problem and you want to use re now you have two problems.

if you know what you want your drum language to do then you have solved most of the problem I think

http://forums.zizula.com/index.php?board=29.0

if you would like post what you would like the drum language to look like (at the link above) or to do and I will help you do it (I am testing out their board)

Compositional tools

Thanks for your reply edexter. At this point I am only using the List command from Pmask. The reason I am using it is that it allowed me a quick way to play looped parts, which I find useful for developing rhythms. It is not really necessary however, and I have already made a start on my own replacement sequencer Python code, though I have not figured out a similar quick looping method yet.

What I am shooting for is not just a drum sequencer language, but more of a general compositional tool that makes use of Python. I like Jacob Joaquin's idea of the rhythmic notation in dseq, but don't really want to use his system per se, only perhaps something similar for programming note start times. Too bad you don't have blue installed, I could send you my current projects and you could see my 1st stumbling baby steps.

Using Pmask and Python I have a basic looper setup where I can specify the tempo and time signature and a quantization value. This lets me use the quantization value in Pmask, making my loops able to be played at any tempo. I also can hook in the note durations, which is kind of interesting, making a drum machine where the actual note durations change with the tempo. I have a "master" python object that contains the looper variables, allowing me to change the tempo, timesig and quantize value for all the python objects (instruments) simultaneously. The idea is in the embryonic stage obviously, but if you are interested install blue and I would be glad to send you the relevant projects.

I may have blue installed or

I may have blue installed or I can probily find it, I don't know if I can help however. I don't want atachments in my email though. There is one concept I have been wanting to try out that is part of jeskola buzz and that is the probiilty drummer where there is a percent chance that a drum hit will sound. It keeps it from getting to repetive. sorry I couldn't be more helpful.

Probability drummer

That kind of idea is very easy to implement in my Pmask List command method. Similarly I have constrained randomized frequencies for the hihat notes, etc. The "random" and "heap" arguments in the Pmask List command allow you to do some interesting things. One of the key reasons I have for developing this methodology is future expansion into more ambitious algorithmic composition.

I would have just attached the .blue file to this post, but unfortunately the blog is not allowing .blue files (or .zip). I have sent an email to Cesare asking him to fix this.

I will create an example including a probabilistic drum and post it on my mediafire website, when I have time. Probably tomorrow night. :)

http://dexrowem.blogspot.com/

http://dexrowem.blogspot.com/search?q=probility+sequencing+language

I have it... seems that I need to change the command int with real so that it can use decimals (or somesuch I will have to look at my new version to see what I changed)
seems to work o.k. it seems that the freq isn't always in the forth position.. I have a song coming together.. tobbacoto14 .... I may rename it to so it doesn't sound so obnoxious..

Probability Sequencing Language

In case you did not notice, I created a new blog entry "Pmask Looper in blue" that includes an example of a simple probability drum and a few other algorithmic features. As you will notice if you read the code, the probability method I am using (Pmask List command 'random' argument) is pretty limited and crude, but it does work. I look forward to checking out your example and will get back to you once I have had time to examine it.

Note : I have a similar problem with int vs float in my looper. If you try to use an integer in either the timesig or tempo value blue will crash. It is these kind of issues dealing with variable/instance types within Python that I really lack essential knowledge. Sigh....

uploading blue file

If you want to upload a .blue file you could add a ".txt" extension.

Just a trick while looking for a more polite solution ... I've seen it used in http://www.csounds.com/node/390.

Thanks for sharing you efforts.
Andrea.

.txt

Thank you Andrea, that makes sense. Sorry to take so long to respond, I just noticed this response here today, since the website does not notify about responses. I am in the process of trying to setup my own website in any case, so will probably just start offering .blue files there when I want to post them.