Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: bvdp on May 13, 2020, 12:40:55 AM



Title: Using Truncate and Subroutine
Post by: bvdp 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


Title: Re: Using Truncate and Subroutine
Post by: sciurius on May 13, 2020, 12:13:03 PM
Cute.


Title: Re: Using Truncate and Subroutine
Post by: bvdp 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!