Kara-Moon Forum
March 28, 2024, 06:49:01 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Rpitch  (Read 1035 times)
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« on: January 18, 2023, 06:38:56 PM »

A "beats" option has been added to the RPITCH command. This simple addition makes it very useful! You will need mma 21.09.3 or better to try this ... I have the example file listed here, but the original is in the source tree in egs/rpitch. Read the comments for justifications Smiley

Code:
/// A very simple RPitch demo for making an otherwise
/// boring 1/5 bass pattern a bit more exciting

/// This is the pattern we'll be using for all the examples

Mset Pattern
G
D
G
D7
z   /// this is here to signal the end of the pattern
EndMset

Include stdpats

Tempo  100
Keysig C

Begin Bass
Voice FretlessBass
Sequence B1234     /// a 1,5,1,5 pattern
Octave 3
RPitch Scale=Scale Offsets=-2,-2,3 Rate=50 Beats=2,4  /// adjust bars 2 and 4
End

/// Important values in the RPITCH setting:
///   Scale ... we are using the SCALE associated with the given CHORD
///   Offsets ... offsets apply to the "distance" between the "normal"
///     note and permitted random values. So, in this example the 5th
///     of a C (major) chord is G. The "-2" is an E and "3" is another
///     C in the next octave.
///   Rate ... 50% of the time we do this, 50% we leave things alone
///   Beats ... ONLY do this if on beat 2 or 4.

Print Simple example, Bass Rpitch is: $_Bass_Rpitch

//$Pattern

/// Now, to modify an existing groove. Let's use

Groove Bossanova
Bass Rpitch Scale=Scale Offsets=-2,-2,-2,-1,-4 Rate=80 Beats=2,4

Print Bossanova try, Bass Rpitch is: $_Bass_Rpitch

$Pattern

Now, isn't that fun!
Logged

My online life: http://www.mellowood.ca
sciurius
Sr. Member
****
Posts: 443



« Reply #1 on: January 19, 2023, 08:46:54 AM »

Cute!
Logged
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« Reply #2 on: January 19, 2023, 05:40:18 PM »

I hope it is more than just "cute" Smiley

The addition of the BEATS option came about because a user requested that we needed "something" for cases, like bossa and samba, jazzy-like songs where the bass hit "alternate" notes in an unpredictable pattern. Having different sequences called randomly would work, but this is much easier. Just don't overuse it.
Logged

My online life: http://www.mellowood.ca
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.047 seconds with 19 queries.