From: Chris C. <ca...@al...> - 2002-02-28 19:56:07
|
One requirement I have is to be able to have more than just the two ruler widgets on the notation view. (By "ruler widgets" I really mean like the BarButtons rather than their contained LoopRulers.) For example, I'd like to be able to switch on and off a TextRuler that contains chord labels (which are not specific to a single staff, so it makes sense to separate them into a ruler or something like it). Can we tune the EditView API for this? Chris |
From: Chris C. <ca...@al...> - 2002-02-28 20:56:43
|
Chris Cannam wrote: > > For example, I'd like to be able to switch on and > off a TextRuler that contains chord labels And if that example isn't tangible enough, I've just checked a basic version in to CVS. It's a ruler (currently at the bottom of the notation view) that shows chord names calculated using the AnalysisHelper. (There are lots of problems with this at the moment: it's generated once, on construction, and isn't updated when an edit happens; it aligns the names against simple arithmetic timeT-to- position calculations instead of the nearest suitable notes; and it can't be switched on and off, instead replacing the barbuttons that could otherwise used to move the playback pointer. There are probably other flaws; it's just a proof-of-concept.) Chris |
From: Guillaume L. <gla...@te...> - 2002-02-28 22:17:24
|
On Thursday 28 February 2002 20:46, Chris Cannam wrote: > > LoopRulers.) For example, I'd like to be able to switch on and > off a TextRuler that contains chord labels (which are not specific > to a single staff, so it makes sense to separate them into a ruler > or something like it). Can we tune the EditView API for this? Yes. Please update and tell me if that's what you had in mind. As for the toggling, then it's simply a matter of show()/hide()ing the widget. -- Guillaume. http://www.telegraph-road.org |
From: Chris C. <ca...@al...> - 2002-02-28 22:31:18
|
Guillaume Laurent wrote: > Please update and tell me if that's what you had in mind. Well, I was really hoping to be able to decide in NotationView how many and what sorts of rulers I wanted without having to let EditView know about it. I'd prefer an addRuler kind of method in EditView. I didn't do it myself because I saw that EditView used a QGrid, and I wasn't sure about adding rows to those. btw, the chord-label ruler now updates itself when the piece is edited. Or rather, it waits for the next refresh like the BarButtons do, but its heart is in the right place. oh, and: Load glazunov.rg, and open a notation view on the third- and-final staff. You'll see the chords down at the bottom listed as nothing for the first few bars, then a couple of F#ms, then a couple of AM7s. Scroll slowly to the right. After no more than about 20 pixels, the F#ms will disappear. I can't work out why; any ideas? (The other names are okay, they remain until they reach the end of the window. I suspect the blank section may contain some more invisible names.) Chris |
From: Guillaume L. <gla...@te...> - 2002-02-28 23:10:47
|
On Thursday 28 February 2002 23:21, Chris Cannam wrote: > > Well, I was really hoping to be able to decide in NotationView > how many and what sorts of rulers I wanted without having to let > EditView know about it. I'd prefer an addRuler kind of method It's possible as well, although a bit more complicated. Do you really need it right away, or can we wait until the need for it arise ? > oh, and: Load glazunov.rg, and open a notation view on the third- > and-final staff. You'll see the chords down at the bottom listed > as nothing for the first few bars, then a couple of F#ms, then > a couple of AM7s. Scroll slowly to the right. After no more > than about 20 pixels, the F#ms will disappear. I can't work out > why; any ideas? No clue yet. I'd rather work on the vertical resize pb right now, though :-). It's been annoying me for days. -- Guillaume. http://www.telegraph-road.org |
From: Chris C. <ca...@al...> - 2002-02-28 23:22:04
|
Guillaume Laurent wrote: > Do you really need it > right away, or can we wait until the need for it arise ? It's not something I (or anyone else) will ever "really need", it'd just be a nicer API for adding rulers. It'd be nicer for the one I've just added (not least because I've already changed its type, so the method name in EditView is no longer entirely appropriate) as well as for any future ones. Chris |
From: Guillaume L. <gla...@te...> - 2002-02-28 23:28:58
|
On Friday 01 March 2002 00:11, Chris Cannam wrote: > > It's not something I (or anyone else) will ever "really need", > it'd just be a nicer API for adding rulers. It'd be nicer for > the one I've just added (not least because I've already changed > its type, so the method name in EditView is no longer entirely > appropriate) as well as for any future ones. What I meant is, do you think we ever will want to add more rulers ? Oh wait, we already want a text ruler for lyrics of course. *sigh*. OK, I'll think of something. -- Guillaume. http://www.telegraph-road.org |
From: Guillaume L. <gla...@te...> - 2002-03-01 00:09:27
|
On Friday 01 March 2002 00:28, I wrote: > > Oh wait, we already want a text ruler for lyrics of course. *sigh*. OK, > I'll think of something. We have addRuler(). -- Guillaume. http://www.telegraph-road.org |