Displaying continuous MIDI data

View: New views
6 Messages — Rating Filter:   Alert me  

Displaying continuous MIDI data

by Charles Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want csound to display values for things like sliders.  It would be
great if it only did so only when the sliders change.  Something like
midi-ox on windows if you know it.  Any ideas?


Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

Re: Displaying continuous MIDI data

by Stéphane Rollandin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Charles Gran a écrit :
> I want csound to display values for things like sliders.  It would be
> great if it only did so only when the sliders change.  Something like
> midi-ox on windows if you know it.  Any ideas?

You can use OSC to connect your sliders to csound. OSCListen return
value is either 0 or 1; it is 1 only if a new message was received. By
testing for this you know when to display the slider value.

hope this helps

Stef



Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

Re: Re: Displaying continuous MIDI data

by Stéphane Rollandin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

stupid me, it's obvious you are talking about MIDI sliders. sorry for
the noise...

Stef



Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

RE: Displaying continuous MIDI data

by Iain McCurdy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
You could ouput data to the console using printk2:

<CsoundSynthesizer>

<CsOptions>
-odac -M0
</CsOptions>

<CsInstruments>

sr    =    44100
ksmps    =    100
nchnls    =    2

instr 1
kCC1 ctrl7 1,1,0,127
printk2 kCC1
endin
   
</CsInstruments>

<CsScore>
i 1 0 3600 ;i1, A LONG NOTE
</CsScore>

</CsoundSynthesizer>




or to an FL widget:

<CsoundSynthesizer>

<CsOptions>
-odac -Ma
</CsOptions>

<CsInstruments>

sr    =    44100
ksmps    =    100
nchnls    =    2

FLpanel    "", 100, 50, 0, 0
gkCC1, gihCC1 FLtext "CC#1", 0,  127, 1, 1, 60, 20,   5, 5
FLpanel_end
FLrun

instr 1
kCC1 ctrl7 1,1,0,127
;IF kCC1 CHANGES OUTPUT A '1'
ktrig changed kCC1
;IF ktrig IS A '1' UPDATE FL WIDGET
FLsetVal ktrig, kCC1, gihCC1
endin
   
</CsInstruments>

<CsScore>
i 1 0 3600 ;i1, A LONG NOTE
</CsScore>

</CsoundSynthesizer>





Iain




> Date: Thu, 2 Jul 2009 09:23:15 -0500
> From: chasgran@...
> To: csound@...
> Subject: [Csnd] Displaying continuous MIDI data
>
> I want csound to display values for things like sliders. It would be
> great if it only did so only when the sliders change. Something like
> midi-ox on windows if you know it. Any ideas?
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@... with body "unsubscribe csound"


Lauren found her dream laptop. Find the PC that’s right for you.

Re: Re: Displaying continuous MIDI data

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Charles,

What is your platform, and/or GUI (or commandline)?

I'm in Windows, and work with MIDI sliders all the time - and routinely
display controller values.

On the commandline, printk2 prints a new value only when the value changes.
(And in any case, you can save the old value, compare the next kvalue with
it and print it only if changed.)

I use Lettuce as my GUI; through chnexport its easy to display slider values
on-screen.

With FLTK there was a mechanism attached to FLslider for displaying its
value in an on-screen box as well.

Art Hunkins

----- Original Message -----
From: "Stéphane Rollandin" <lecteur@...>
To: <csound@...>
Sent: Thursday, July 02, 2009 11:21 AM
Subject: [Csnd] Re: Displaying continuous MIDI data


Charles Gran a écrit :
> I want csound to display values for things like sliders.  It would be
> great if it only did so only when the sliders change.  Something like
> midi-ox on windows if you know it.  Any ideas?

You can use OSC to connect your sliders to csound. OSCListen return
value is either 0 or 1; it is 1 only if a new message was received. By
testing for this you know when to display the slider value.

hope this helps

Stef



Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

Re: Re: Re: Displaying continuous MIDI data

by Charles Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 2, 2009 at 11:10 AM, Art Hunkins<abhunkin@...> wrote:

> What is your platform, and/or GUI (or commandline)?
>
> I'm in Windows, and work with MIDI sliders all the time - and routinely
> display controller values.

I'm sort of going back-and-forth between a PC and a big imac, but
mostly I've been using XP with the command-line.

I'm putting together a real-time piece with a clarinet that will be
processed.  I'm not sure what platform he will run it on, but I'm
guessing a PC laptop.

Charles


Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"