|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
How to display the values on a busHi,
please let ask a (probably silly) question: I am currently using JitLib and I was looking for a way to display (graphically or not) the values of a control or audio bus. I know I can use scope but that's not sufficient for me. What I have in mind (if graphically) is something like a range slider and a number showing the values on the bus or better a graphic window with the values displayed on a graph. Or it could be enough to show in the post window the immediate value but ignore how to do it, tried poll but couldn't understand how to use it. All the best -- Alessandro Fogar http://www.fogar.it _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: How to display the values on a busIf you look at the Bus help file you can see how to use ".get" along with SendTrig and an OSCresponderNode to assign the bus value to a variable or GUI object or whatever you want. If you want it to work with a GUI though you need to put your value update inside { }.defer or it won't show up. Something like this should get you started though.
b = Bus.audio(s); //for if you didn't already have a bus set up { SendTrig.kr(Impulse.kr(1.0),0,0.9); }.play; //this will tell our OSCresponderNode to get the bus value once per second (the Impulse) OSCresponderNode(nil,'/tr',{ arg time,responder,msg; b.get({arg val; val.postln;}); //when the trigger from SendTrig happens, it will post the value of the bus }).add; -Cole
On Wed, Aug 6, 2008 at 8:14 AM, Alessandro Fogar <sfogar@...> wrote: Hi, -- http://www.freewebs.com/coledingraham/ |
|
|
Re: How to display the values on a busHave a look at Andre Bartetzki's AudioMeter class which you can get here: Hope that helps, Paul On 6 Aug 2008, at 16:14, Alessandro Fogar wrote:
|
|
|
Re: How to display the values on a busHi,
for me it does not work and .get, in the help file of Bus is listed as a method only for control buses, I have an audio rate bus. I think there should be something like bus.inspect(). Is it possible to use .plot someway ? All the best -- Alessandro Fogar http://www.fogar.it 2008/8/6 Cole Ingraham <coledingraham@...>: > If you look at the Bus help file you can see how to use ".get" along with > SendTrig and an OSCresponderNode to assign the bus value to a variable or > GUI object or whatever you want. If you want it to work with a GUI though > you need to put your value update inside { }.defer or it won't show up. > Something like this should get you started though. > > > b = Bus.audio(s); //for if you didn't already have a bus set up > > { SendTrig.kr(Impulse.kr(1.0),0,0.9); }.play; //this will tell our > OSCresponderNode to get the bus value once per second (the Impulse) > > OSCresponderNode(nil,'/tr',{ arg time,responder,msg; > b.get({arg val; val.postln;}); //when the trigger from SendTrig > happens, it will post the value of the bus > }).add; > > > -Cole > > On Wed, Aug 6, 2008 at 8:14 AM, Alessandro Fogar <sfogar@...> wrote: >> >> Hi, >> >> please let ask a (probably silly) question: >> >> I am currently using JitLib and I was looking for a way to display >> (graphically or not) the values of a control or audio bus. >> >> I know I can use scope but that's not sufficient for me. >> >> What I have in mind (if graphically) is something like a range slider >> and a number showing the values on the bus or better a graphic window >> with the values displayed on a graph. >> >> Or it could be enough to show in the post window the immediate value >> but ignore how to do it, tried poll but couldn't understand how to use >> it. >> >> All the best >> >> -- >> Alessandro Fogar >> >> http://www.fogar.it >> >> _______________________________________________ >> sc-users mailing list >> >> info (subscribe and unsubscribe): >> http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 >> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ >> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ > > > > -- > http://www.freewebs.com/coledingraham/ > _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: How to display the values on a busAs sort of a workaround you could wrap your bus read function inside A2K.kr which will convert it to control rate.
-Cole On Thu, Aug 7, 2008 at 5:18 AM, Alessandro Fogar <sfogar@...> wrote: Hi, -- http://www.freewebs.com/coledingraham/ |
|
|
Re: How to display the values on a busYou want something like this:
b = Bus.audio(s); // needs to be after the point in the chain you want to measure SynthDef("readBus", { SendTrig.kr(Impulse.kr(1.0),0,In.ar(b)); }).play(addAction:\addToTail); OSCresponderNode(nil,'/tr',{ arg time,responder,msg; msg[3].postln }).add; // something to read {Out.ar(b, SinOsc.ar(mul: 0.2)) }.play S. On 7 Aug 2008, at 15:17, Cole Ingraham wrote:
|
|
|
Re: How to display the values on a busScott,
many thanks... It works, but ... Can you please show me how to display the value on a simple GUI (a number box and a range slider) ? All the best -- Alessandro Fogar http://www.fogar.it 2008/8/7, Scott Wilson <s.d.wilson.1@...>: > You want something like this: > > > b = Bus.audio(s); > > // needs to be after the point in the chain you want to measure > SynthDef("readBus", { > SendTrig.kr(Impulse.kr(1.0),0,In.ar(b)); > }).play(addAction:\addToTail); > > OSCresponderNode(nil,'/tr',{ arg time,responder,msg; > msg[3].postln > }).add; > > // something to read > > {Out.ar(b, SinOsc.ar(mul: 0.2)) }.play > > S. > > > On 7 Aug 2008, at 15:17, Cole Ingraham wrote: > > As sort of a workaround you could wrap your bus read function inside A2K.kr > which will convert it to control rate. > > -Cole > > On Thu, Aug 7, 2008 at 5:18 AM, Alessandro Fogar <sfogar@...> wrote: > > > Hi, > > > > for me it does not work and .get, in the help file of Bus is listed as > > a method only for control buses, I have an audio rate bus. > > > > I think there should be something like bus.inspect(). > > > > Is it possible to use .plot someway ? > > > > > > All the best > > > > -- > > Alessandro Fogar > > > > http://www.fogar.it > > > > > > 2008/8/6 Cole Ingraham <coledingraham@...>: > > > > > > > > > If you look at the Bus help file you can see how to use ".get" along > with > > > SendTrig and an OSCresponderNode to assign the bus value to a variable > or > > > GUI object or whatever you want. If you want it to work with a GUI > though > > > you need to put your value update inside { }.defer or it won't show up. > > > Something like this should get you started though. > > > > > > > > > b = Bus.audio(s); //for if you didn't already have a bus set up > > > > > > { SendTrig.kr(Impulse.kr(1.0),0,0.9); }.play; //this > will tell our > > > OSCresponderNode to get the bus value once per second (the Impulse) > > > > > > OSCresponderNode(nil,'/tr',{ arg time,responder,msg; > > > b.get({arg val; val.postln;}); //when the trigger from SendTrig > > > happens, it will post the value of the bus > > > }).add; > > > > > > > > > -Cole > > > > > > On Wed, Aug 6, 2008 at 8:14 AM, Alessandro Fogar <sfogar@...> > wrote: > > >> > > >> Hi, > > >> > > >> please let ask a (probably silly) question: > > >> > > >> I am currently using JitLib and I was looking for a way to display > > >> (graphically or not) the values of a control or audio bus. > > >> > > >> I know I can use scope but that's not sufficient for me. > > >> > > >> What I have in mind (if graphically) is something like a range slider > > >> and a number showing the values on the bus or better a graphic window > > >> with the values displayed on a graph. > > >> > > >> Or it could be enough to show in the post window the immediate value > > >> but ignore how to do it, tried poll but couldn't understand how to use > > >> it. > > >> > > >> All the best > > >> > > >> -- > > >> Alessandro Fogar > > >> > > >> http://www.fogar.it > > >> > > >> _______________________________________________ > > >> sc-users mailing list > > >> > > >> info (subscribe and unsubscribe): > > >> http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 > > >> archive: > http://www.listarc.bham.ac.uk/marchives/sc-users/ > > >> search: > http://www.listarc.bham.ac.uk/lists/sc-users/search/ > > > > > > > > > > > > -- > > > http://www.freewebs.com/coledingraham/ > > > > > > > _______________________________________________ > > sc-users mailing list > > > > info (subscribe and unsubscribe): > http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 > > archive: > http://www.listarc.bham.ac.uk/marchives/sc-users/ > > search: > http://www.listarc.bham.ac.uk/lists/sc-users/search/ > > > > > > -- > http://www.freewebs.com/coledingraham/ > > _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: How to display the values on a bus( w = GUI.window.new("EZSlider", Rect(20, 400, 440, 180)); w.front; w.view.decorator = FlowLayout(w.view.bounds); e = EZSlider(w, // window 400 @ 24, // dimensions "My Bus", // label nil, {|ez| ez.value.postln },// action 0 // initVal ) ) b = Bus.audio(s); // needs to be after the point in the chain you want to measure SynthDef("readBus", { SendTrig.kr(Impulse.kr(1.0),0,In.ar(b)); }).play(addAction:\addToTail); OSCresponderNode(nil,'/tr',{ arg time,responder,msg; {e.value = msg[3] }.defer; }).add; // something to read {Out.ar(b, SinOsc.ar(mul: 1)) }.play _______ S. On 21 Aug 2008, at 16:22, Alessandro Fogar wrote:
|
|
|
Re: How to display the values on a busOops, sorry that's not a range slider, but I think you should be able to work it out with EZRanger. S. On 21 Aug 2008, at 16:37, Scott Wilson wrote:
|