Csound Csound-dev Csound-tekno Search About

[Csnd] prototype FLTK based ftable "graphic" editor

Date2008-01-27 09:56
FromTim Mortimer
Subject[Csnd] prototype FLTK based ftable "graphic" editor
AS crappy as this is, i have attempted to write a ftable editor using only
FLTK widgets!

The aptly named FLjoy proved to be about the best fit for the job in the
end.

unfortunately FLsetVal doesn't seem to work for sliders that have inverted
min / max values... 

in this example illustrative csd attached, the x axis is pitch, & the y axis
is keyscaled db values

The left mouse button in the FLjoy target zone plays back the appropriate
index at the appropriate dB

the right mouse button allows for rewriting of the current target ftable
index.

So with the right mouse button held down you can quickly, easily, (albeit
roughly) fashion some sort of whimsical ftable shape - 

i mainly designed this with parameter mapping in mind, rather than drawing
oscillator shapes - & as such, it's also meant to be an editing rather than
performance interface element (i'll be unleashing them en masse in my
planned "ambient supersyn"

selecting Index Lock allows for fine tuning of the currently selected index
(by depressing the right mouse button) without the worry of accidently
slipping over into a neighbouring bin

The value is displayed in the text box, & also in the slider to the right of
the joystick space.

Don't alter the text boxes, they are for display purposes only

I look forward to suggestions for improvements - or even better
demonstrations of improvements - or even better yet the WXPython realtime
ftable editor that someone else is now going to go away & write, wherein the
tables fields are all displayed & responsive to changes within the mouse
editing space itself! 

& to think it only took me about 16 hours! (he said sarcastically, thinking
it might take 3 or 4 at the most...)

http://www.nabble.com/file/p15117478/fljoy.csd fljoy.csd 

happy hunting

T.
-- 
View this message in context: http://www.nabble.com/prototype-FLTK-based-ftable-%22graphic%22-editor-tp15117478p15117478.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-01-27 10:20
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: prototype FLTK based ftable "graphic" editor
AttachmentsNone  

Date2008-01-27 11:00
FromTim Mortimer
Subject[Csnd] Re: prototype FLTK based ftable "graphic" editor
Thanks - i'm thinking if the focus range was adjustible, & a few either minor
close editing tools, it could even become like a generic cc editor.... 

it's not so much about editing graphically - you can always export it to do
that.

its also that you can hear the full parametric variation at once (more or
less) by just sweeping the range. edit by ear, & then apply visual focus
where necessary...

you can "sort of see it then" anyway in the slider at right (in a flick book
representation...)

i'll check out your wxcode though, definately...




Oeyvind Brandtsegg-2 wrote:
> 
> This is interesting,
> however, I find it a bit hard to edit graphically without seeing the
> result displayed.
> 
> For a Wx implementation of something similar, have a look at the
> graph.py module that comes with PartikkelExplorer. It's a general data
> plotting module, but in PartikkelExplorer it is used for editing
> csound ftables with the mouse.
> It has a simple test build in if you run it as main (that is, just
> double click the file, or type "python graph.py" on the commandline).
> The graphics are ugly as hell, I am the first to admit, but it works.
> 
> Oeyvind
> 
> 2008/1/27, Tim Mortimer :
>>
>> AS crappy as this is, i have attempted to write a ftable editor using
>> only
>> FLTK widgets!
>>
>> The aptly named FLjoy proved to be about the best fit for the job in the
>> end.
>>
>> unfortunately FLsetVal doesn't seem to work for sliders that have
>> inverted
>> min / max values...
>>
>> in this example illustrative csd attached, the x axis is pitch, & the y
>> axis
>> is keyscaled db values
>>
>> The left mouse button in the FLjoy target zone plays back the appropriate
>> index at the appropriate dB
>>
>> the right mouse button allows for rewriting of the current target ftable
>> index.
>>
>> So with the right mouse button held down you can quickly, easily, (albeit
>> roughly) fashion some sort of whimsical ftable shape -
>>
>> i mainly designed this with parameter mapping in mind, rather than
>> drawing
>> oscillator shapes - & as such, it's also meant to be an editing rather
>> than
>> performance interface element (i'll be unleashing them en masse in my
>> planned "ambient supersyn"
>>
>> selecting Index Lock allows for fine tuning of the currently selected
>> index
>> (by depressing the right mouse button) without the worry of accidently
>> slipping over into a neighbouring bin
>>
>> The value is displayed in the text box, & also in the slider to the right
>> of
>> the joystick space.
>>
>> Don't alter the text boxes, they are for display purposes only
>>
>> I look forward to suggestions for improvements - or even better
>> demonstrations of improvements - or even better yet the WXPython realtime
>> ftable editor that someone else is now going to go away & write, wherein
>> the
>> tables fields are all displayed & responsive to changes within the mouse
>> editing space itself!
>>
>> & to think it only took me about 16 hours! (he said sarcastically,
>> thinking
>> it might take 3 or 4 at the most...)
>>
>> http://www.nabble.com/file/p15117478/fljoy.csd fljoy.csd
>>
>> happy hunting
>>
>> T.
>> --
>> View this message in context:
>> http://www.nabble.com/prototype-FLTK-based-ftable-%22graphic%22-editor-tp15117478p15117478.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/prototype-FLTK-based-ftable-%22graphic%22-editor-tp15117478p15117997.html
Sent from the Csound - General mailing list archive at Nabble.com.