[Csnd] OSC example doesn't work
Date | 2011-08-25 17:46 |
From | Nathaniel Haggard |
Subject | [Csnd] OSC example doesn't work |
I apologize for possibly reposting this. In QuteCsound-0.6.0 I tried the examples http://www.csounds.com/manual/html/examples/OSCmidircv.csd and http://www.csounds.com/manual/html/examples/OSCmidisend.csd listed here http://www.csounds.com/manual/html/OSClisten.html. The receiver gives messages like this when playing the virtual keyboard from the sender, but no sound is heard. new alloc for instr 1000: kst = 176, kch = 1, kd1 = 0, kd2 = 0 kst = 176, kch = 1, kd1 = 6, kd2 = 0 kst = 144, kch = 1, kd1 = 88, kd2 = 127 rtevent: T 10.429 TT 10.429 M: 0.00000 new alloc for instr 1001: kst = 144, kch = 1, kd1 = 88, kd2 = 127 rtevent: T 11.265 TT 11.265 M: 0.00000 Does these examples work for you? Also why don't I see much code for OSClisten in csound (http://lmgtfy.com/?q=OSClisten+csound)? Do people use midi instead of OSC for live performance? Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-25 19:08 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] OSC example doesn't work |
Attachments | None None |
Date | 2011-08-25 20:38 |
From | francesco |
Subject | [Csnd] Re: OSC example doesn't work |
i have made some trivial experiment with OSC in Csound, and it seems to work well, (either receiving that sending). But i have not try in QuteCsound nor with MIDI. ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-example-doesn-t-work-tp4735174p4735717.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-25 21:04 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | None None |
Date | 2011-08-25 21:32 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Yes, it was the volume as Victor said. Thanks victor, I can hear it now. Is http://www.csounds.com/manual/html/OSClisten.html a good example of osc control? Wiimote.csd (http://www.csounds.com/journal/issue7/wiimote.csd) looks cleaner, but I'm not sure if schedkwhen and trigger can do the same as that looping call in http://www.csounds.com/manual/html/examples/OSCmidircv.csd -Nate On Thu, Aug 25, 2011 at 2:04 PM, |
Date | 2011-08-25 21:43 |
From | francesco |
Subject | [Csnd] Re: OSC example doesn't work |
yes apologies, i was not clear because my intention was only to say that there is some other using OSC. ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-example-doesn-t-work-tp4735174p4735891.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-25 23:37 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
On linux with csound 5.13 with kvol scaling turned off I get no sound. # csound OSCmidircv.csd -odac -+rtaudio=alsa time resolution is 0.625 ns 0dBFS level = 32768.0 Csound version 5.13 beta (float samples) Aug 25 2011 libsndfile-1.0.20 UnifiedCSD: OSCmidircv.csd STARTING FILE Creating options Creating orchestra Creating score orchname: /tmp/csound-m7smod.orc scorename: /tmp/csound-sZ25Cg.sco rtaudio: ALSA module enabled ******************** * USING NEW PARSER * ******************** Define macro DEST Macro definition for DEST Define macro VOL Macro definition for VOL END OF INPUT END OF INPUT END OF INPUT Parsing successful! Creating boolean expression Creating boolean expression goto types L P 0 Creating boolean expression goto types L P 0 Creating boolean expression goto types L P 0 ELSEIF case Creating boolean expression goto types L P 0 SETTING 0DBFS: 1.000000 LABELS list is full...extending to 10 Elapsed time at end of orchestra compile: real: 0.004s, CPU: 0.010s sorting score ... ... done Elapsed time at end of score sort: real: 0.004s, CPU: 0.010s Csound version 5.13 beta (float samples) Aug 25 2011 graphics not supported on this terminal, ascii substituted 0dBFS level = 1.0 WARNING: OSC listener #0 started on port 47120 ftable 1: ftable 1: 16384 points, scalemax 1.000 _--'''''--_ _-' '-_ _- -_ . . _' '_ - - _' '_ . . - - _'_____________________________________'________________________________________ '_ . . . - - '_ _' . - -_ _' . - '. .' '._ _-' -.._____.-' ftable 2: ftable 2: 128 points, scalemax 0.000 ftable 3: ftable 3: 128 points, scalemax 100.000 ________________________________________________________________ ftable 202: ftable 202: 32 points, scalemax 256.000 _ . ._______________________________ orch now loaded audio buffered in 256 sample-frame blocks ALSA: -B 1024 not allowed on this device; using 1881 instead ALSA: -b 256 not allowed on this device; using 940 instead ALSA output: total buffer size: 1881, period size: 940 writing 512-byte blks of shorts to dac SECTION 1: new alloc for instr 1000: kst = 176, kch = 1, kd1 = 0, kd2 = 0 kst = 176, kch = 1, kd1 = 6, kd2 = 0 kst = 144, kch = 1, kd1 = 71, kd2 = 127 rtevent: T 5.994 TT 5.994 M: 0.00000 new alloc for instr 1001: kst = 144, kch = 1, kd1 = 71, kd2 = 0 kst = 144, kch = 1, kd1 = 72, kd2 = 127 rtevent: T 7.741 TT 7.741 M: 0.00000 kst = 144, kch = 1, kd1 = 72, kd2 = 0 kst = 144, kch = 1, kd1 = 73, kd2 = 127 rtevent: T 9.488 TT 9.488 M: 0.00000 kst = 144, kch = 1, kd1 = 73, kd2 = 0 kst = 144, kch = 1, kd1 = 74, kd2 = 127 rtevent: T 11.236 TT 11.236 M: 0.00000 On Thu, Aug 25, 2011 at 2:43 PM, francesco |
Date | 2011-08-25 23:44 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | None |
Date | 2011-08-25 23:57 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
It gives WARNING: instr 1001 uses 5 p-fields but is given 3 with the following score: |
Date | 2011-08-26 00:12 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | None |
Date | 2011-08-26 00:22 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | None |
Date | 2011-08-26 10:08 |
From | mantaraya36@gmail.com |
Subject | Re: [Csnd] OSC example doesn't work |
Hi, Did you do the wfs rendering in csound? Cheers, Andres On Thu Aug 25 19:08:01 2011 Victor.Lazzarini@nuim.ie wrote: Looks like the volume might be turned down on the instrument. Maybe remove the volume scaling, kvol, in out aosc * kvolFor what it is worth, I used quite a bit of OSC for various things. I did a piece in 2007 or 8 for the TU Berlin WFS system where I ran csound using OSC commands from Python. ----- Original Message ----- From: Nathaniel Haggard <natester@gmail.com> Date: Thursday, August 25, 2011 5:47 pm Subject: [Csnd] OSC example doesn't work To: csound@lists.bath.ac.uk > I apologize for possibly reposting this. > > In QuteCsound-0.6.0 I tried the examples > http://www.csounds.com/manual/html/examples/OSCmidircv.csd and > http://www.csounds.com/manual/html/examples/OSCmidisend.csd listed > here http://www.csounds.com/manual/html/OSClisten.html. > > The receiver gives messages like this when playing the virtual > keyboard from the sender, but no sound is heard. > > new alloc for instr 1000: > kst = 176, kch = 1, kd1 = 0, kd2 = 0 > kst = 176, kch = 1, kd1 = 6, kd2 = 0 > kst = 144, kch = 1, kd1 = 88, kd2 = 127 > > rtevent: T 10.429 TT 10.429 M: 0.00000 > new alloc for instr 1001: > kst = 144, kch = 1, kd1 = 88, kd2 = 127 > > rtevent: T 11.265 TT 11.265 M: 0.00000 > > Does these examples work for you? > > Also why don't I see much code for OSClisten in csound > (http://lmgtfy.com/?q=OSClisten+csound)? Do people use > midi instead > of OSC for live performance? > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth |
Date | 2011-08-26 14:35 |
From | David Akbari |
Subject | Re: [Csnd] OSC example doesn't work |
OSC is really great but it's really about using the best tool for the job. Some hardware like the P5 glove or Lemur multi-touch control surface are primarily geared at OSC for their transmission protocol. OSC especially shines across multiple computers for the same performance or synchronizing an art installation. The OSClisten manual page seems like a good example of OSC but of course there's always room for improvement. Have you checked out the UDO database? I recall there being some examples there as well that might help you. David Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-26 16:37 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
On Thu, Aug 25, 2011 at 5:22 PM, |
Date | 2011-08-26 16:54 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
you could check then if the instrument i1001 is receiving sane parameters from i1000. Add these lines to 1001 prints "freq %f - amp %f \n", p4, p5 Victor On 26 Aug 2011, at 16:37, Nathaniel Haggard wrote: > On Thu, Aug 25, 2011 at 5:22 PM, |
Date | 2011-08-26 17:03 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
When I add that I get an interesting warning at least. new alloc for instr 1001: WARNING: instr 1001 uses 51 p-fields but is given 5 freq 480.000000 - amp 0.000000 kst = 144, kch = 1, kd1 = 71, kd2 = 0 kst = 144, kch = 1, kd1 = 72, kd2 = 127 rtevent: T 5.982 TT 5.982 M: 0.00000 WARNING: instr 1001 uses 51 p-fields but is given 5 freq 512.000000 - amp 0.000000 Also when I change the event line from this: event "i", 1001, 0, -1, kcps, kamp to this: event "i", 1001, 0, 10, kcps, kamp I can hear the note until turnoff or for 10. On Fri, Aug 26, 2011 at 9:54 AM, Victor Lazzarini |
Date | 2011-08-26 17:08 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Well, there is a typo, you probably used p51 instead of p5 in the prints line: WARNING: instr 1001 uses 51 p-fields but is given 5 The change you made now makes each event 10 secs long max. The -1 is used to make it indefinitely long, until turnoff2 switches it off. Victor On 26 Aug 2011, at 17:03, Nathaniel Haggard wrote: > When I add that I get an interesting warning at least. > > new alloc for instr 1001: > WARNING: instr 1001 uses 51 p-fields but is given 5 > freq 480.000000 - amp 0.000000 > kst = 144, kch = 1, kd1 = 71, kd2 = 0 > kst = 144, kch = 1, kd1 = 72, kd2 = 127 > rtevent: T 5.982 TT 5.982 M: 0.00000 > WARNING: instr 1001 uses 51 p-fields but is given 5 > freq 512.000000 - amp 0.000000 > > Also when I change the event line from this: > > event "i", 1001, 0, -1, kcps, kamp > > to this: > > event "i", 1001, 0, 10, kcps, kamp > > I can hear the note until turnoff or for 10. > > > On Fri, Aug 26, 2011 at 9:54 AM, Victor Lazzarini > |
Date | 2011-08-26 17:16 |
From | Victor Lazzarini |
Subject | Re: [Csnd] OSC example doesn't work |
No, they had a cluster with the WFS renderer designed for their installation. I ran csound on the cluster producing 16 sources, which then were picked up by the renderer via jack. The renderer and csound were controlled by OSC from a python script. The advantage of the setup is that I could replace the renderer by an ambisonics one for other venues (which I did, then using csound for the job). VBAP and binaural engines could also be designed as drop-in replacements. Victor On 26 Aug 2011, at 10:08, mantaraya36@gmail.com wrote: > Hi, > > Did you do the wfs rendering in csound? > > Cheers, > Andres > > On Thu Aug 25 19:08:01 2011 Victor.Lazzarini@nuim.ie wrote: > > Looks like the volume might be turned down on the instrument. Maybe > remove the volume scaling, kvol, in > out aosc * kvol > For what it is worth, I used quite a bit of OSC for various things. > I did a piece in 2007 or 8 for the TU Berlin WFS system where I ran > csound using OSC commands from Python. > > ----- Original Message ----- > From: Nathaniel Haggard |
Date | 2011-08-26 17:28 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Whoops. Without the typo amp is 1.00000. new alloc for instr 1000: kst = 176, kch = 1, kd1 = 0, kd2 = 0 kst = 176, kch = 1, kd1 = 6, kd2 = 0 kst = 144, kch = 1, kd1 = 71, kd2 = 127 rtevent: T 3.439 TT 3.439 M: 0.00000 new alloc for instr 1001: freq 480.000000 - amp 1.000000 kst = 144, kch = 1, kd1 = 71, kd2 = 0 kst = 144, kch = 1, kd1 = 72, kd2 = 127 rtevent: T 5.193 TT 5.193 M: 0.00000 freq 512.000000 - amp 1.000000 Is there a bug in event for -1 duration? On Fri, Aug 26, 2011 at 10:08 AM, Victor Lazzarini |
Date | 2011-08-26 17:57 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
But I don't hear any sound though amp is 1.00000. Also did the eigenharp people really need a new protocol instead of OSC for live performance: "We did have a look at OSC but there are a bunch of things that our protocol does that OSC didn’t (not least of which, for example, is clock syncronisation for jitter removal, utterly vital over ethernet for live performance) so we decided to grow our own and release it." -http://createdigitalmusic.com/2009/10/eigenharp-details-midi-high-res-protocol-and-open-source-plans-for-the-space-bassoon/ On Fri, Aug 26, 2011 at 10:28 AM, Nathaniel Haggard |
Date | 2011-08-26 18:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
No there isn't. It works here and no one else has reported an error. Can you post the exact CSD you used (just the receiver one)? Victor On 26 Aug 2011, at 17:57, Nathaniel Haggard wrote: > But I don't hear any sound though amp is 1.00000. > > Also did the eigenharp people really need a new protocol instead of > OSC for live performance: > > "We did have a look at OSC but there are a bunch of things that our > protocol does that OSC didn’t (not least of which, for example, is > clock syncronisation for jitter removal, utterly vital over ethernet > for live performance) so we decided to grow our own and release it." > -http://createdigitalmusic.com/2009/10/eigenharp-details-midi-high-res-protocol-and-open-source-plans-for-the-space-bassoon/ > > > On Fri, Aug 26, 2011 at 10:28 AM, Nathaniel Haggard |
Date | 2011-08-26 18:36 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Hi, I seem to remember there was actually a bug with negative instrument numbers, but I can't remember exactly what... I know it's been fixed, but not sure it's actually made it to a release. Maybe John remembers? Cheers, Andres On Fri, Aug 26, 2011 at 6:33 PM, Victor Lazzarini |
Date | 2011-08-26 18:43 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
|
Date | 2011-08-26 19:00 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
I didn't hear of it. There is nothing in the tracker. Victor On 26 Aug 2011, at 18:36, Andres Cabrera wrote: > Hi, > > I seem to remember there was actually a bug with negative instrument > numbers, but I can't remember exactly what... I know it's been fixed, > but not sure it's actually made it to a release. Maybe John remembers? > > Cheers, > Andres > > On Fri, Aug 26, 2011 at 6:33 PM, Victor Lazzarini > |
Date | 2011-08-26 19:02 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | event-test.csd |
Can you test with the attached CSD? If it works, the problem is not with negative p3. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" On 26 Aug 2011, at 18:43, Nathaniel Haggard wrote: > |
Date | 2011-08-26 20:39 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
It beeped at me for about 6 seconds. Here's the output: writing 512-byte blks of shorts to dac SECTION 1: new alloc for instr 1: rtevent: T 0.000 TT 0.000 M: 0.00000 new alloc for instr 2: rtevent: T 5.000 TT 5.000 M: 0.57825 B 0.000 .. 6.000 T 6.000 TT 6.000 M: 0.00000 Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 0.57825 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 6.025s, CPU: 0.120s On Fri, Aug 26, 2011 at 12:02 PM, Victor Lazzarini |
Date | 2011-08-26 20:59 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Ok, so there is no problem with event or negative p3. Maybe it's a problem with turnoff2? you can change the OSC receive CSD to check: if (kvel == 0) then turnoff2 1001, 4, 1 becomes if(kvel==0) then event "i", -1001, 1,100,1 Another thing might be that the MIDI notes are too short. Victor On 26 Aug 2011, at 20:39, Nathaniel Haggard wrote: > It beeped at me for about 6 seconds. > > Here's the output: > > writing 512-byte blks of shorts to dac > SECTION 1: > new alloc for instr 1: > rtevent: T 0.000 TT 0.000 M: 0.00000 > new alloc for instr 2: > rtevent: T 5.000 TT 5.000 M: 0.57825 > B 0.000 .. 6.000 T 6.000 TT 6.000 M: 0.00000 > Score finished in csoundPerform(). > inactive allocs returned to freespace > end of score. overall amps: 0.57825 > overall samples out of range: 0 > 0 errors in performance > Elapsed time at end of performance: real: 6.025s, CPU: 0.120s > > On Fri, Aug 26, 2011 at 12:02 PM, Victor Lazzarini > |
Date | 2011-08-26 21:42 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Changing the code to use that event "i", -1001, 1,100,1 still doesn't produce sound. The output shows a message about instr 1001 not playing though. I doubt the midi notes are coming too close together because when I change -1 to 10 I get a keydown and keyup event. if (kvel == 0) then ; turnoff2 1001, 4, 1 event "i", -1001, 1,100,1 elseif (kvel > 0) then event "i", 1001, 0, -1, kcps, kamp endif new alloc for instr 1000: kst = 176, kch = 1, kd1 = 0, kd2 = 0 kst = 176, kch = 1, kd1 = 6, kd2 = 0 kst = 144, kch = 1, kd1 = 71, kd2 = 127 rtevent: T 3.974 TT 3.974 M: 0.00000 new alloc for instr 1001: kst = 144, kch = 1, kd1 = 71, kd2 = 0 rtevent: T 6.467 TT 6.467 M: 0.00000 could not find playing instr 1001.000000 On Fri, Aug 26, 2011 at 1:59 PM, Victor Lazzarini |
Date | 2011-08-26 21:56 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
The instr. seems to get activated alright becase we see a rtevent message. The 'could not find' could be spurious just because another negative p1 event was sent in after the instrument got deactivated. Not sure really what the matter is, as I can't reproduce it on OSX. Maybe John ffitch or Menno can have a look? Victor On 26 Aug 2011, at 21:42, Nathaniel Haggard wrote: > Changing the code to use that event "i", -1001, 1,100,1 still doesn't > produce sound. The output shows a message about instr 1001 not > playing though. > > I doubt the midi notes are coming too close together because when I > change -1 to 10 I get a keydown and keyup event. > > if (kvel == 0) then > ; turnoff2 1001, 4, 1 > event "i", -1001, 1,100,1 > elseif (kvel > 0) then > event "i", 1001, 0, -1, kcps, kamp > endif > > > > new alloc for instr 1000: > kst = 176, kch = 1, kd1 = 0, kd2 = 0 > kst = 176, kch = 1, kd1 = 6, kd2 = 0 > kst = 144, kch = 1, kd1 = 71, kd2 = 127 > rtevent: T 3.974 TT 3.974 M: 0.00000 > new alloc for instr 1001: > kst = 144, kch = 1, kd1 = 71, kd2 = 0 > rtevent: T 6.467 TT 6.467 M: 0.00000 > could not find playing instr 1001.000000 > > > > > > On Fri, Aug 26, 2011 at 1:59 PM, Victor Lazzarini > |
Date | 2011-08-26 22:33 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
When duration is 10000 it works as expected, but only with turnoff2 and not with that other event. I didn't see any documentation for a negative kinsnum or insname. http://www.csounds.com/manual/html/event.html if (kvel == 0) then turnoff2 1001, 4, 1 ;event "i", -1001, 1,100,1 elseif (kvel > 0) then event "i", 1001, 0, 10000, kcps, kamp endif Of course I won't be able to have notes last greater than 10000 this way. On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini |
Date | 2011-08-26 23:06 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Here's the bit on negative p1 (and p3) http://www.csounds.com/manual/html/i.html On 26 Aug 2011, at 22:33, Nathaniel Haggard wrote: > When duration is 10000 it works as expected, but only with turnoff2 > and not with that other event. I didn't see any documentation for a > negative kinsnum or insname. > http://www.csounds.com/manual/html/event.html > > if (kvel == 0) then > turnoff2 1001, 4, 1 > ;event "i", -1001, 1,100,1 > elseif (kvel > 0) then > event "i", 1001, 0, 10000, kcps, kamp > endif > > Of course I won't be able to have notes last greater than 10000 this > way. > > On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini > |
Date | 2011-08-26 23:11 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Anyway, there is something fishy here because on OSX I can use event with negative p1 and it works just as the original. Victor On 26 Aug 2011, at 22:33, Nathaniel Haggard wrote: > When duration is 10000 it works as expected, but only with turnoff2 > and not with that other event. I didn't see any documentation for a > negative kinsnum or insname. > http://www.csounds.com/manual/html/event.html > > if (kvel == 0) then > turnoff2 1001, 4, 1 > ;event "i", -1001, 1,100,1 > elseif (kvel > 0) then > event "i", 1001, 0, 10000, kcps, kamp > endif > > Of course I won't be able to have notes last greater than 10000 this > way. > > On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini > |
Date | 2011-08-26 23:14 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
I just tried doubles csound on OSX and I am getting no sound. So it's something to do with the doubles version. At least we're getting somewhere. Victor On 26 Aug 2011, at 23:11, Victor Lazzarini wrote: > Anyway, there is something fishy here because on OSX I can use event > with negative p1 and it works just as the original. > > Victor > On 26 Aug 2011, at 22:33, Nathaniel Haggard wrote: > >> When duration is 10000 it works as expected, but only with turnoff2 >> and not with that other event. I didn't see any documentation for a >> negative kinsnum or insname. >> http://www.csounds.com/manual/html/event.html >> >> if (kvel == 0) then >> turnoff2 1001, 4, 1 >> ;event "i", -1001, 1,100,1 >> elseif (kvel > 0) then >> event "i", 1001, 0, 10000, kcps, kamp >> endif >> >> Of course I won't be able to have notes last greater than 10000 >> this way. >> >> On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini >> |
Date | 2011-08-26 23:25 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Ok, it's not the doubles version, because I can get it to work. But it seems NOT to work, when I start the OSC receiver before the sender. If start the sender before the receiver it works. Try that (with negative p3 and turnoff, as in the original example). I'll try to find out why. Victor On 26 Aug 2011, at 23:14, Victor Lazzarini wrote: > I just tried doubles csound on OSX and I am getting no sound. So > it's something to do with the doubles version. At least we're > getting somewhere. > > Victor > On 26 Aug 2011, at 23:11, Victor Lazzarini wrote: > >> Anyway, there is something fishy here because on OSX I can use >> event with negative p1 and it works just as the original. >> >> Victor >> On 26 Aug 2011, at 22:33, Nathaniel Haggard wrote: >> >>> When duration is 10000 it works as expected, but only with turnoff2 >>> and not with that other event. I didn't see any documentation for a >>> negative kinsnum or insname. >>> http://www.csounds.com/manual/html/event.html >>> >>> if (kvel == 0) then >>> turnoff2 1001, 4, 1 >>> ;event "i", -1001, 1,100,1 >>> elseif (kvel > 0) then >>> event "i", 1001, 0, 10000, kcps, kamp >>> endif >>> >>> Of course I won't be able to have notes last greater than 10000 >>> this way. >>> >>> On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini >>> |
Date | 2011-08-26 23:30 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
sorry, this appears to be another false alarm. I had the original with kvol, in that case starting the receiver end means the volume stays at 0. Removing kvol makes the example work in all scenarios on OSX. Back to square one. Victor On 26 Aug 2011, at 23:25, Victor Lazzarini wrote: > Ok, it's not the doubles version, because I can get it to work. But > it seems NOT to work, when I start the OSC receiver before the sender. > If start the sender before the receiver it works. Try that (with > negative p3 and turnoff, as in the original example). > > I'll try to find out why. > > Victor > > On 26 Aug 2011, at 23:14, Victor Lazzarini wrote: > >> I just tried doubles csound on OSX and I am getting no sound. So >> it's something to do with the doubles version. At least we're >> getting somewhere. >> >> Victor >> On 26 Aug 2011, at 23:11, Victor Lazzarini wrote: >> >>> Anyway, there is something fishy here because on OSX I can use >>> event with negative p1 and it works just as the original. >>> >>> Victor >>> On 26 Aug 2011, at 22:33, Nathaniel Haggard wrote: >>> >>>> When duration is 10000 it works as expected, but only with turnoff2 >>>> and not with that other event. I didn't see any documentation >>>> for a >>>> negative kinsnum or insname. >>>> http://www.csounds.com/manual/html/event.html >>>> >>>> if (kvel == 0) then >>>> turnoff2 1001, 4, 1 >>>> ;event "i", -1001, 1,100,1 >>>> elseif (kvel > 0) then >>>> event "i", 1001, 0, 10000, kcps, kamp >>>> endif >>>> >>>> Of course I won't be able to have notes last greater than 10000 >>>> this way. >>>> >>>> On Fri, Aug 26, 2011 at 2:56 PM, Victor Lazzarini >>>> |
Date | 2011-08-26 23:32 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Oh yes I forgot about that. On linux it wasn't an issue so I took out the volume scaling. What if I wanted to add debugging for keydown and keyup? I got an error message about printks not initialized when I tried to add printks for keyup and keydown. On Fri, Aug 26, 2011 at 4:30 PM, Victor Lazzarini |
Date | 2011-08-26 23:33 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Rather I left in the volume scaling. sorry. On Fri, Aug 26, 2011 at 4:32 PM, Nathaniel Haggard |
Date | 2011-08-26 23:41 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
So it does work then? If so I'm just thankful it does. Anyway answering your other question, is this what you want? if (kvel == 0) then ;turnoff2 1001, 4, 1 event "i", -1001, 0, 1 printks "key up: %f %f \n", 0, kamp,kcps elseif (kvel > 0) then event "i", 1001, 0, -1, kcps, kamp printks "key down: %f %f \n", 0, kamp,kcps endif On 26 Aug 2011, at 23:33, Nathaniel Haggard wrote: > Rather I left in the volume scaling. sorry. > > On Fri, Aug 26, 2011 at 4:32 PM, Nathaniel Haggard > |
Date | 2011-08-27 14:51 |
From | francesco |
Subject | [Csnd] Re: OSC example doesn't work |
Hello, to me the example works. I have try with software midi keyboard and jack. With correction to out like suggested by Mr Victor (i.e commenting * kvol). And if work to me ... Ubuntu, Csound 5.13 (double) ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/OSC-example-doesn-t-work-tp4735174p4741254.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-27 14:58 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Thanks for confirming it, francesco On 27 Aug 2011, at 14:51, francesco wrote: > Hello, > to me the example works. I have try with software midi keyboard and > jack. > With correction to out like suggested by Mr Victor (i.e commenting * > kvol). > And if work to me ... > > Ubuntu, Csound 5.13 (double) > > ciao, > francesco. > > -- > View this message in context: http://csound.1045644.n5.nabble.com/OSC-example-doesn-t-work-tp4735174p4741254.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-08-29 16:55 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
I compiled csound 5.13 from source on tinycore linux. The build scons command was "scons -useOSC=1 -useFLTK=0 useGettext=0" Maybe not inculding FLTK is a problem. On Sat, Aug 27, 2011 at 7:58 AM, Victor Lazzarini |
Date | 2011-08-29 17:47 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Attachments | None None |
Date | 2011-08-29 18:05 |
From | Steven Yi |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Did you use "-useOSC=1" or "useOSC=1"? I think the former won't work corectly having that dash. On Mon, Aug 29, 2011 at 11:55 AM, Nathaniel Haggard |
Date | 2011-08-29 18:13 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Re: OSC example doesn't work |
Hello, I had similar thing in opensuse - I used option -useOSC=1 and thought that everything is OK but i did not have liblo-devel installed and OSC support was not compiled actually. And there was no error message either. Check if both liblo and liblo-devel packages are installed in your system and you have lo.h in your include path (probably /usr/include/lo/lo.h) And you should look into your config.log file in your csound build directory and see what was the test result after line scons: Configure: Checking for C library lo... And if everything is there, you could make simple tests using command line utility osctest coming with liblo (run your csd and send messages like $ oscsend localhost 7777 /sample/address iTfs 1 3.14 hello from command line - so you don't have to have another csd running for sending messages) hoping it helps tarmo On Monday 29 August 2011 18:55:52 Nathaniel Haggard wrote: > I compiled csound 5.13 from source on tinycore linux. The build scons > command was "scons -useOSC=1 -useFLTK=0 useGettext=0" > > Maybe not inculding FLTK is a problem. > > On Sat, Aug 27, 2011 at 7:58 AM, Victor Lazzarini > |
Date | 2011-08-29 18:33 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
I don't remember exactly if there was a dash or not, but it compiled to use OSC obviously. On Mon, Aug 29, 2011 at 11:05 AM, Steven Yi |
Date | 2011-08-31 17:54 |
From | Nathaniel Haggard |
Subject | Re: [Csnd] Re: OSC example doesn't work |
The example works on centos 5.6 with csound installed via "yum install csound-osc" -Nate On Mon, Aug 29, 2011 at 10:47 AM, |