Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

Hi All,

I've just joined as my database use has went up somewhat.

I am writing a database for a music project and I'm having problems with calculations on texts.

I have one field chord 'chord in c tonic' which will contain a chord in text description (with music symbols from ASCII char set) like :) Cm(add 9)/E♭

I want to transpose this chord in C tonic and present it in different tonics i.e. the same chord in D, E, F tonic (aka musical transposition).

So the chord

Cmin(add 9)/E♭ would be

D♭min(add 9)/E in D♭ tonic

...and so on for all the other notes of the chromatic scale.

I thought the best way to achieve this would be have two calculation functions with the second being a big if-then swap i.e.

1. dynamically copy 'chord in c tonic' to 'chord in D♭ tonic' if field added or modified

2a. in 'chord in D♭tonic' search for C, replace C with D♭

2b. search for C♯, replace C♯ with D

2c. search for D♭, replace with D

2c and so on.

3. end

but i just can't form the calculation and the right approach to recursing - it is a little confusing. I only ever want to maintain details manually for the 'chord in C tonic' - not all the transpositions.

Any help appreciated. I'm using Filemaker 10 on OSX.

Best Regards

Anthony

  • Author
  • Newbies

sorry for no example...

within the calculation I have Substitute ( Chord C Tonic; ["C" ; "D♭"] ;["D♭" ; "D"] ;["D" ; "E♭"] ;["E♭" ; "E"] ;["E" ; "F"] ;["F" ; "F♯"] ;["F♯" ; "G"] ;["G" ; "A♭"] ;["A♭" ; "A"] ;["A" ; "B♭"] ;["B♭" ; "C"] )

repetitions = 1

but is isn't working - looks like it's doing all rules at once...rather than the first match then exit

thanks

  • Author
  • Newbies

Hi Commet,

Thank you so much! I'll study this.

Anthony

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.