Re: [Audacity-devel] DTMF tone generator
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: salvatore v. <ven...@ya...> - 2007-01-09 01:05:36
|
Don't worry, it's alright :-) Emails do not alwasy convey the right feelings. I am in the phase of cleaning up a fixed version of the DTMF generator (it turns out to have a bug or two ;-) including the expanded slider and the timetext control. I already commited to introduce the timetextctrl in all of the generators, and in the near future I might actually try to port all of the into the ShuttleGui, so they will all have a common structure that might be used as a guideline (?), so we will definitely need to check how they will come out in the different platforms. ciao, .salvo --- Mar...@ao... ha scritto: > Salvo > > Sorry for the delay responding - I'm not too well. Also > sorry if it sounded > like I was being critical - I was just trying to be > encouraging. I see that > Markus has fixed the slider width problem and I will try > and make sure I > have written at least something using ShuttleGUI before I > make any more comments > about it! > > TTFN > Martyn > > In a message dated 05/01/2007 00:21:14 GMT Standard Time, > > ven...@ya... writes: > Martyn, > I acknowledge Markus point, and I hope nobody got the > feel > that I wanted to "leave problems" to other to fix, as > that > was not my intent. > > Since I used the ShuttleGUI (yep, I did), I thought that > it was going to be good enough, but seems that some ways > of > using it handles things differently. I have been looking > around the code before coming up with the way I wrote > it, > taking in from pieces here and there, but can't help on > another platform until someone tells me, and where I > would > like some input/help. > > So, if there is a way to fix the control with some > wxEXPAND | wxALL kind of thing, please advice, otherwise > I > will have to redesign it trying to make a different use > of > the ShuttleGui. > > thx, > .salvo > > > > --- Mar...@ao... ha scritto: > > > Salvo > > > > Markus has a good point here, and made it very gently. > I > > think that > > developers should try and not leave problems for > people > > on other platforms to fix, > > although I have done so on many occasions. > > > > I've always found these flags and things difficult and > > only having one > > platform to develop on means that differences between > > platforms (and there are > > bound to be some) are difficult to track down. Leland > > helped me (a lot!) in the > > past with this. > > > > The ShuttleGUI system that James set up appears to be > a > > higher level of > > abstraction that gets over some of these problems, > making > > life easier. However I > > have not tried to write anything with it yet (I > should!) > > (and probably you > > too!). > > > > I think that using something like > > int temp=49; //this bit needs fixing > > S.StartStatic( _("Duty Cycle"),1); > > { > > S.StartMultiColumn(2, wxEXPAND); > > S.SetStretchyCol(1); > > S.TieSlider( _("duty cycle:"), temp, 100); > > S.EndMultiColumn(); > > } > > instead of > > S.SetStyle(wxSL_HORIZONTAL); > > mDtmfDutyS = > > S.Id(ID_DTMF_DUTYCYCLE_SLIDER).AddSlider(wxT(""), > > dDutyCycle, > > DUTY_MAX); > > mDtmfDutyS->SetRange(DUTY_MIN, DUTY_MAX); > > would make the problem easier to solve as once it is > > right in one effect > > (for all platforms), it would be right in all of them. > > > (I modified this > > slightly from the "OGG Export Setup" in preferences as > it > > had a slider.) > > > > I see that 'sliders' can only have values from 0 to > some > > int, rather than an > > arbitrary range, but that could be fixed, similarly > with > > decimal places, I > > guess. > > > > I get the feeling that the code would be somewhat > shorter > > if one of us did > > this. Shall I have a look at converting the interface > > into using just > > ShuttleGUI or do you want to? I think eventually all > the > > effects will use it, if > > people get around to it! > > > > TTFN > > Martyn > > > > In a message dated 04/01/2007 21:57:25 GMT Standard > Time, > > > > ven...@ya... writes: > > Hi Markus, > > glad to hear it is working on linux and you like it > :-) > > Unfortunately, I am quite new on the wxWidgets, so I > > have > > no idea what could be reason for the problem you > > describe. > > I thought the sliders should be fairly the same > > everywhere, > > but please, if you find a fix for it on linux, I will > be > > happy to re-test it in windows, which is the platform > > where > > I develop/test. > > > > cheers, > > .salvo > > > > > > --- Markus Meyer <me...@me...> ha scritto: > > > > > Hi Salvo > > > Hi Martyn > > > > > > Mar...@ao... schrieb: > > > > I have added this to CVS with the minor changes > > below. > > > I hope this meets > > > > with you approval and that I've got the vcproj > file > > > right. Can anyone verify? > > > > Also on other platforms? > > > > > > > the DTMF tone generator is funny, I like it very > much! > > > > > > Just one small remark: the slider on Linux has a > width > > of > > > like 2 pixels > > > or so, so I can't really use it with the mouse to > > change > > > values ;) > > > Clicking into the slider and using the cursor keys > > works, > > > though. Before > > > I dig into the code to fix this, do you think what > > could > > > be the cause? > > > Are we just missing some small wxEXPAND | wxALL or > > > something like this > > > in a sizer? > > > > > > > > > Markus > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the > chance to share your > opinions on IT & business topics through brief surveys - > and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Audacity-devel mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel > worth a visit... ====================================== http://www.climatecrisis.net http://www.stopglobalwarming.org http://www.votesolar.org http://www.conservation.org http://www.socialinvest.org http://www.ceres.org http://www.bytekiln.com http://guidamadrid.altervista.org __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it |