Kara-Moon Forum
March 29, 2024, 02:26:58 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: Using Truncate and Subroutine  (Read 2168 times)
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« on: May 13, 2020, 12:40:55 AM »

I think that Truncate and Subroutines are the most overlooked things in MMA. I saw a post in another forum on this site where a fellow had converted a BiaB file from 4/4 to 5/4. Well, how hard is that in MMA? Not very it turns out. Here's my very (VERY!) simple attempt:

Code:
// Simple example to play a 4/4
// groove in 5/4 time ... silly
// 'cause it's easy enough to create
// the 5/4 to start :)

Tempo 100
Groove NiteJazz

// All we do is create 1/4 bars followed by 4/4
Truncate 1
C
C
Truncate 1
G
G
Truncate 1
Dm
Dm
Truncate 1
C
C

// That works, but it is a bit ugly. How about using a subroutine. This
// produces the same sequences.

DefCall To54 chord
  Truncate 1
  $Chord
  $Chord
EndDefCall

Call To54 C
Call To54 G
Call To54 Dm
Call To54 C
« Last Edit: May 13, 2020, 02:36:31 AM by bvdp » Logged

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



« Reply #1 on: May 13, 2020, 12:13:03 PM »

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


WWW
« Reply #2 on: May 14, 2020, 04:39:06 PM »

I should add that this is not the recommended way to do this. Best is to write a new groove!
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.045 seconds with 19 queries.