rcadiz Posted August 23, 2023 Share Posted August 23, 2023 Hello everybody, sorry if this is a basic or too general question, but I wonder what would the best strategy be to apply articulations or dynamics to specific situations of pitch and rhythm. For example, let's say I have a omn list of pitches and durations and I want to apply articulations or dynamics to specific situations, such as: repeated pitches that have the same duration, or notes that last more than a quarter note, or each note that is not the same pitch as the previous one, or to each event that is cs4 with duration of 1/4, etc. I know that I can write specific functions for each case in particular, but I wonder if there is an easier way within opusmodus. I have been trying to use dictum or def-case for these effects, but I don't think those approaches can handle these kind of situations, but maybe I am wrong. Or maybe there are some maping or pattern-searching opusmodus functions that I am not aware of that could be of some use here. Many thanks! Rodrigo Quote Link to comment Share on other sites More sharing options...
opmo Posted August 23, 2023 Share Posted August 23, 2023 I think you can achive this with the dictum function. What about the pattern-map function? Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 23, 2023 Author Share Posted August 23, 2023 Thanks for the quick reply! I will look into the pattern-map function. But, with respect to dictum, how can I specify multiple conditions? For example a specific pitch and duration? Something like this? (:any (q c4) :apply stacc) I tried the above and does not work. Also, how could I detect repeated notes in dictum? So, for example, apply this not to any c4, but only to c4s that are repeated. Thanks! Rodrigo Quote Link to comment Share on other sites More sharing options...
opmo Posted August 23, 2023 Share Posted August 23, 2023 Create as many dictums you need to complite the task: '((:range (t s) :apply (dechord x)) (:range (b3 c4) :apply (pitch-transpose -7 x)) (:range (t s) :apply (pitch-invert x)) ...) Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 23, 2023 Author Share Posted August 23, 2023 Thanks! I just realized I was missing the :and dictum type which does apply to multiple conditions. But I still don't see how many dictums could be used to apply articulations to repeated pitches. Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted August 23, 2023 Share Posted August 23, 2023 Hi, to add specific articulation to repeated notes, you can use directly the function repeat-attribute on OMN expressions or apply it in dictum with :apply technique. S. Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 23, 2023 Author Share Posted August 23, 2023 Thanks Stephane! I will look into that. Best, Rodrigo Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 24, 2023 Author Share Posted August 24, 2023 Dear Stephane, do you mean there is a function with that specific name I could use? Or are you referring to the = symbol? I looked for such a function but couldn't find it. Sorry if I misunderstood you suggestion. Thanks! Rodrigo Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted August 24, 2023 Share Posted August 24, 2023 Yes, there is a function repeat-attribute in OM. Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 28, 2023 Author Share Posted August 28, 2023 Hi Stephane, sorry to insist with this topic, but I could not find any reference to such a function. If I try to invoke this function I get an Undefined operator error. And there is nothing in the documentation. Could you please point me towards any example of the usage of this function? Many thanks!! Rodrigo Quote Link to comment Share on other sites More sharing options...
opmo Posted August 28, 2023 Share Posted August 28, 2023 I hope you know how to search the system functions. Go to the Assistant window and type: repeat-attribute in the Search: Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 28, 2023 Author Share Posted August 28, 2023 Well, that function is totally missing from my OpusModus installation. When I search for it, I get nothing. When I try to use it, the code editor does not change to blue, so it does not recognize that function, I am using Version 3.0.28962 (3.0.28962). Was this function deprecated? Thanks! Quote Link to comment Share on other sites More sharing options...
opmo Posted August 28, 2023 Share Posted August 28, 2023 Just update your OM, as you can see Stephane and I can see the document. Quote Link to comment Share on other sites More sharing options...
rcadiz Posted August 29, 2023 Author Share Posted August 29, 2023 I updated OM and now it works. Thanks! Rodrigo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.