Magic Node tempo script
Magic Node tempo script
I am looking for a magic node which categorises tracks based on their BPM. I which to group them into four speed groups. Does anyone know how to do this with Magic Node?
Solution
Actually, normal filters work!
Unknown|filter:bpm<1\<artist>
Largo|filter:bpm<56 and bpm>0\<artist>
Andante|filter:bpm<84 and bpm>55\<artist>
Allegro|filter:bpm<145 and bpm>83\<artist>
Presto|filter:bpm>144\<artist>
Unknown|filter:bpm<1\<artist>
Largo|filter:bpm<56 and bpm>0\<artist>
Andante|filter:bpm<84 and bpm>55\<artist>
Allegro|filter:bpm<145 and bpm>83\<artist>
Presto|filter:bpm>144\<artist>
-
- Posts: 69
- Joined: Fri Aug 05, 2005 4:10 pm
- Location: Orlando, Florida, USA
Just for good measure, the SQL equivalent would be:
Unknown|SQL filter:Songs.BPM < 1\<artist>
Largo|SQL filter:Songs.BPM BETWEEN 0 AND 56\<artist>
Andante|SQL filter:Songs.BPM BETWEEN 55 AND 84\<artist>
Allegro|SQL filter:Songs.BPM BETWEEN 83 AND 145\<artist>
Presto|SQL filter:Songs.BPM > 144\<artist>
Interestingly enough, using AND here doesn't work (although it should):
Largo|SQL filter:Songs.BPM > 0 AND Songs.BMP < 56\<artist>
will yield errors. I have no idea why. Normally works fine in SQL and Access.
Unknown|SQL filter:Songs.BPM < 1\<artist>
Largo|SQL filter:Songs.BPM BETWEEN 0 AND 56\<artist>
Andante|SQL filter:Songs.BPM BETWEEN 55 AND 84\<artist>
Allegro|SQL filter:Songs.BPM BETWEEN 83 AND 145\<artist>
Presto|SQL filter:Songs.BPM > 144\<artist>
Interestingly enough, using AND here doesn't work (although it should):
Largo|SQL filter:Songs.BPM > 0 AND Songs.BMP < 56\<artist>
will yield errors. I have no idea why. Normally works fine in SQL and Access.
The MN code above does not work at all. No errors, and no filtering.
also does not work, and on my system gives no error !
Code: Select all
Largo|SQL filter:Songs.BPM > 0 AND Songs.BMP < 56\<artist>
will yield errors. I have no idea why. Normally works fine in SQL and Access.
also does not work, and on my system gives no error !
Regards
Philby
Philby
-
- Posts: 69
- Joined: Fri Aug 05, 2005 4:10 pm
- Location: Orlando, Florida, USA
You don't select the tracks. You just go to the Magic Nodes, click on the +, then you get the different headings (Unknown, Largo ...) and click on the +. This should list all the songs. No tracks need to be selected at any time.Philby wrote:ALL tracks are selected.
Have you got any other Magic Nodes?
"All tracks are selected" means that when I click on my "Tempo" Magic Node, ALL my tracks are shown in the resulting list. In other words, the Magic Node has determined (incorrectly) that ALL my tracks meet the filter criteria - ie it selects them all !
I have some other Magic Nodes which work fine.
I have some other Magic Nodes which work fine.
Last edited by Philby on Mon Sep 19, 2005 12:58 am, edited 1 time in total.
Regards
Philby
Philby