[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] strategies for MIDI controling GUI



On Thursday 27 December 2012 16:17:19 Hans van Eck wrote:
> Hi,
> 
> This sounds most promising, but I get an error message at the first
> command:
> MIDIMktl.find
> -Class not defined
> 
> Am I using too old a version? 3.4.4 on MacMini 10.4.11 ?

Did you download and install the package that Miguel indicated?
And recompile the language afterwards?

MKtl is not in the default package.

I also notice a mistake in your code (capital K):

MIDIMKtl.find
rather than
MIDIMktl.find


sincerely,
Marije

> 
> Hans
> 
> 
> Op woensdag 26-12-2012 om 16:40 uur [tijdzone +0000], schreef Miguel
> 
> Negrao:
> > A 26/12/2012, às 15:15, Hans van Eck escreveu:
> > > Hi,
> > > 
> > > Still a novice, but I'm working on the integration of the stratifier in
> > > an environment in SC3.
> > > Basic output of the stratifier is MIDI: 13 * controllers, 4 * midinote
> > > on/off
> > > (5 'sliders' with pressure sensor, 1 XY with pressure sensor, 4
> > > switches)
> > > 
> > > It would be great to get a read-out of the sliders, XY and switches in
> > > a GUI: - 11 (horizontal)  - 1 TableSlider2D  - 4 Buttons
> > > 
> > > Anyone an idea how I could approach this?
> > 
> > Hi
> > 
> > I would suggest using the Modality toolkit.  Download it from
> > 
> > https://github.com/ModalityTeam/Modality-toolkit (click on the zip icon)
> > 
> > and install the FP quark.
> > 
> > Then you need to create a spec file for your controller. Check the
> > MKtlSpecs folder, follow the ones already there and check this file:
> > https://github.com/ModalityTeam/Modality-toolkit/blob/master/Modality/MK
> > tlSpecs/_HowToMakeAKtlDescription_.scd
> > 
> > Then do:
> > 
> > MIDIMktl.find
> > 
> > Your midi port should appear here. Since you are probably using an
> > external MIDI device you will need to know what is the name of the
> > template that you have created for it in the index.desc.scd and pass it
> > as the value to the MIDIMKtl new method.
> > 
> > From there it’s easy to generate a GUI for all the controls:
> > 
> > (
> > ScrollView(bounds:Rect(0,0,300,600)
> > 
> >     .center_(Window.availableBounds.center))
> > 
> > .canvas_(
> > 
> >     View().layout_(
> >     
> >         VLayout(*
> >         
> >             MIDIMKtl.basicNew(\nameOfMyDevice,\nanoKONTROL).elements.coll
> >             ect{ |elem, key|
> >             
> >                 var sl = Slider().orientation_(\horizontal);
> >                 
> >                 elem.signal.do{ |v| sl.value_(v) };
> >                 
> >                 HLayout( sl, StaticText().string_(key).minWidth_(50) )
> >             
> >             }.asArray
> >         
> >         )
> >     
> >     )
> > 
> > ).front
> > )
> > 
> > You should change  MIDIMKtl.basicNew(\nameOfMyDevice,\nanoKONTROL) to
> > MIDIMKtl(\nameOfMyMIDIPort, \stratifier) .
> > 
> > Hopefully at some point in the future the Modality toolkit will do this
> > automatically for you.
> > 
> > best,
> > Miguel
> > http://www.friendlyvirus.org/miguelnegrao/
> > 
> > ps: Thank god for the Qt layout system !!! We should really keep praising
> > it !
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > sc-users mailing list
> > 
> > info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> > https://listarc.bham.ac.uk/marchives/sc-users/
> > search: https://listarc.bham.ac.uk/lists/sc-users/search/
> 
> _______________________________________________
> sc-users mailing list
> 
> info (subscription, etc.):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> https://listarc.bham.ac.uk/marchives/sc-users/
> search: https://listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/