Csound Csound-dev Csound-tekno Search About

[Csnd] 1) FLslidBnkSet woes + 2) FTsave query

Date2008-01-26 04:10
FromTim Mortimer
Subject[Csnd] 1) FLslidBnkSet woes + 2) FTsave query

Im trying to make a generic keyboard spread parameter editor (see attached
csd file) - this is just the bare bones starting point ( an FLslidebank
covering notes numbered 36 to 84)

I don't seem to be able to initialise the table with any values however
using FLslidBnkSet (& assumedly i'd use a sucession of irate updates by
firing a preset instrument ultimately anyway, much as my table save already
does (thanks to Jonathon M for showing me that - JM are u still out
there?...)

can someone please either show me how this is done or help me verify a bug?
(im on windows & still on 5.06)

id ultimately like to be able to see what the current value is for the
slider im editing - is that possible?

also, when files are written with ftsave, & all that header data comes out
with it, am i suppose to be able to read that somehow as is with an existing
GEN routine?

i always end up having to cut the headers out & then load the info in to
GEN23.... seems kind of annoying / stupid...






http://www.nabble.com/file/p15101509/slibankdemo.csd slibankdemo.csd 
-- 
View this message in context: http://www.nabble.com/1%29-FLslidBnkSet-woes-%2B-2%29-FTsave-query-tp15101509p15101509.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-01-28 21:07
FromAndres Cabrera
Subject[Csnd] Re: 1) FLslidBnkSet woes + 2) FTsave query
Hi,
Can you post a simple csd to check?

Cheers,
Andrés

El vie, 25-01-2008 a las 20:10 -0800, Tim Mortimer escribió:
> 
> Im trying to make a generic keyboard spread parameter editor (see attached
> csd file) - this is just the bare bones starting point ( an FLslidebank
> covering notes numbered 36 to 84)
> 
> I don't seem to be able to initialise the table with any values however
> using FLslidBnkSet (& assumedly i'd use a sucession of irate updates by
> firing a preset instrument ultimately anyway, much as my table save already
> does (thanks to Jonathon M for showing me that - JM are u still out
> there?...)
> 
> can someone please either show me how this is done or help me verify a bug?
> (im on windows & still on 5.06)
> 
> id ultimately like to be able to see what the current value is for the
> slider im editing - is that possible?
> 
> also, when files are written with ftsave, & all that header data comes out
> with it, am i suppose to be able to read that somehow as is with an existing
> GEN routine?
> 
> i always end up having to cut the headers out & then load the info in to
> GEN23.... seems kind of annoying / stupid...
> 
> 
> 
> 
> 
> 
> http://www.nabble.com/file/p15101509/slibankdemo.csd slibankdemo.csd 


Date2008-01-29 07:43
FromTim Mortimer
Subject[Csnd] Re: 1) FLslidBnkSet woes + 2) FTsave query
Thanks Andres

this code below doesn't work on my machine (Win 5.06) - but when i change
FLslidBnk to FLvslidBnk  it does!

which is the first time i have seen any slidbnk set operation work at all! -
tried numerous times a few days ago however & couldn't get it to function.
(however i had inverted min max values, table offset, a much more complex
scenario - the problem is debuggers want to see simple scenarios, which
isn't necessarily when the problems surface... catch 22 it seems...)

but on my system this is still "buggy", & from my attempts to utilise this
on the weekend i think the whole slidBnk 1 & 2, horiz & vert set up needs an
audit & a double check. 

I ended up scrapping all the code I had as not only was it proving
troublesome to implement the desired behaviour - but i came up with what i
thought was a better design full stop.

apologies therefore i can't be of more assistance.

but this code at least runs & demonstrates there is some sort of issue. but
i believe the "issues" are numerous & surface further once the application
is pushed into less "orthodox" implementations (although why the max slider
value is at the bottom of all the vertical sliders across the board i really
have no idea. i'm yet to implement a vertical slider who's output didn't
require a converted recalculation before output for some reason or other) 

just to reiterate slidBank2 proved equally as unco-operative...

good luck. thankfully from my perspective i can report this has little
remaining relevance...

I'm looking fwd to 5.08 - at which time i promise i'll start trying to more
comprehensively catagog the numerous difficulties & unexpected behaviours
(or lack of behaviours) i seem to keep encountering from time to time.

but honestly when your orc is 500+ lines long, & all of a sudden some opcode
line you insert totally ceases to behave as expected, it's not always
possible to reproduce the "error" from a simple example in order to make a
neat presentation to the list....

but i appreciate where your all coming from. we are all busy & looking to
spend as little time as possible chasing down problems....




-d




  sr	    	=  48000
  ksmps	=  64
  nchnls  =  2
  
  0dbfs = 1

gifunc	ftgen 1,0, 8, -7, 0,8,0

gifunc2	ftgen 2,0, 8, -7, 0,8,1

FLpanel "Panel", 600, 400, 50, 50

	FLslidBnk " ", 8 , gifunc , 300 , 200 , 50 , 50, -25
	gihandle FLslidBnkGetHandle

FLpanelEnd
FLrun

instr 01

print gihandle

endin

instr 2

	FLslidBnkSet gihandle, gifunc2
	turnoff
	
endin






i 1 0 5

i 2 1 1

e




-- 
View this message in context: http://www.nabble.com/1%29-FLslidBnkSet-woes-%2B-2%29-FTsave-query-tp15101509p15154069.html
Sent from the Csound - General mailing list archive at Nabble.com.