Tonematrix. musical game reimplemented with Csound
Date | 2016-01-13 17:44 |
From | Anton Kholomiov |
Subject | Tonematrix. musical game reimplemented with Csound |
Attachments | tonematrix.csd tonematrix-hangdrum.csd |
I'd like to share a little toy re-implemented with Csound.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
It's a pair of step sequencers. One for drums and another one for bells. The original game is called Musical squares or tonematrix. I've added drums and slightly changed the scale. It's another type of pentatonic. It's an indian scale called Hamsadhvani if you are curious. It's in just intonation. To run, download the file in the attachment. and run csound with it: > csound tonematrix.csd The second file contains bells and hangdrum. Congratulations to the Csound developers! Csound is such a genius monster. It can digest a 20k file, very cool performance. If you have any issues with performance I can generate lighter version of the game with less rows. Enjoy, Anton |
Date | 2016-01-13 18:04 |
From | Anton Kholomiov |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
But it's better to turn off all the programms including browser for better performance 2016-01-13 20:44 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
|
Date | 2016-01-13 18:28 |
From | Rory Walsh |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
Attachments | stepSeq.csd |
Nice stuff Anton. Thanks for sharing. I see a lot of duplication of code in here. I would have probably triggered different instances of a more generic higher-level instrument with different p-fields, rather than duplicate the entire instrument's code with slight modifications. I had no problems with performance though. It ran fine for me on my laptop. I do this kind of thing with Cabbage quite a bit. I do like step sequencers. I've attached the code I used for a simple one recently. It's a matrix of 100 toggle boxes. But the code it quite succinct. You can discard the Cabbage parts, but maybe you can find something of interest in how I check the values of each widget using arrays. On 13 January 2016 at 17:44, Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
|
Date | 2016-01-13 18:30 |
From | Guillermo Senna |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
Really fun to play Anton! It doesn't seem to be so resource-hungry
either. I've an i3 and then Firefox, email client, Cabbage, etc.
also opened. Cpu load is 15%-20% only. Cheers. On 13/01/16 15:04, Anton Kholomiov
wrote:
|
Date | 2016-01-13 20:03 |
From | Anton Kholomiov |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
@Rory Thanks for sharing the code. I should learn to use arrays) But without having array of widgets I need to write out those 16*16 buttons, but the duplication for triggering instruments could be avoided indeed! @Guillermo I'm glad to know! What version of csound are you using? It loads my cpu up to 70%. 2016-01-13 21:30 GMT+03:00 Guillermo Senna <gsenna@gmail.com>:
|
Date | 2016-01-13 20:37 |
From | Rory Walsh |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
Can fltk widgets be declared within an instrument? If so you could use an global k-rate array and some loops to setup all your buttons? On 13 January 2016 at 20:03, Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
|
Date | 2016-01-13 20:48 |
From | Guillermo Senna |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
Csound 6.06. Ubuntu Studio 14.04.3. Jackd running. I didn't turn on all the buttons! But with 5-6 per column in each window (drums and bells simultaneously) I am at 20%. On 13/01/16 17:03, Anton Kholomiov
wrote:
|
Date | 2016-01-13 21:02 |
From | Rory Walsh |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
I didn't turn on all buttons either, good point! To be honest, I've noticed that Csound can choke a little when I'm triggering lots of instruments(>20) simultaneously several times a second but I guess it's to be expected? Or maybe not. I should prepare an example. On 13 January 2016 at 20:48, Guillermo Senna <gsenna@gmail.com> wrote:
|
Date | 2016-02-26 17:52 |
From | "Dr. Richard Boulanger" |
Subject | Re: Tonematrix. musical game reimplemented with Csound |
Anton, WOW. Another fantastic and super musical example! Thanks so much for making it and for sharing it. Dr.B. _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music 1140 Boylston Street, FB-75 Boston, MA 02215-3693 Office @ 161 Mass Ave - 4th Floor 617-747-2384 (office) 774-488-9166 (cell) ______________________________________________ rboulanger@berklee.edu (email) https://www.facebook.com/richard.boulanger.58 (facebook) ______________________________________________ President of Boulanger Labs - http://boulangerlabs.com Director of Csounds.com - http://csounds.com Author & Editor: The Csound Book - http://mitpress.mit.edu/books/csound-book Author & Editor: The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book ______________________________________________ about: http://www.boulangerlabs.com/about/richardboulanger/ about: http://www.csounds.com/community/developers/dr-richard-boulanger/ ______________________________________________ music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/ On Wed, Jan 13, 2016 at 12:44 PM, Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
|