Oh crap, I was quite baffled by something I should have already known, but my trigonometry is quite rusty. It's been a long time since I went to school...
[abs] before [pow] is necessary because [pow] only works with positive numbers. However, you're right, I don't need that. Just tangent = opposite / adjacent
- what you need there is just opposite/adjacent, no square, no tan.
the opposite/adjacent is already the tangent of an angle, and you don't need make that angle explicit at all.
You're right of course. Silly me - I knew that, but my trig is rusty!
- why do you need to shear two rectangles, instead of shearing a single,
longer one ?
Because if you have an 8th note connected to a 16th note then you need one and a half sheared rectangles, but in order to look right they must be parallel. This way I can create a single [beam] object that creates single, double, etc beams joined together in beamed groups. Otherwise I can only have four 16th notes, two 8th notes, eight 32nd notes etc. See enclosed example.
X ed
Metastudio 3 for Pure Data - Free download at: http://sharktracks.co.uk/puredata
----- Original Message ---- From: Mathieu Bouchard matju@artengine.ca To: Jack jack@rybn.org Cc: Ed Kelly morph_2016@yahoo.co.uk; PD List pd-list@iem.at; cyrille henry ch@chnry.net Sent: Sun, 5 September, 2010 18:43:37 Subject: Re: [PD] GEM Shear / angle relationship - sinusoidal error
On Sun, 5 Sep 2010, Jack wrote:
- [abs] just before [pow 2] is completely useless.
Wrong, that depend : float -2 -> pow 2 doesn't give 4 but 0. So [abs] can be useful to get 4.
right. [pow] really sucks... however, [expr pow($f1,2)] does it correctly... and so does [t a a] [*].
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC