Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marbles: minor scale wrong #109

Open
jpnielsen opened this issue Aug 4, 2021 · 2 comments
Open

Marbles: minor scale wrong #109

jpnielsen opened this issue Aug 4, 2021 · 2 comments

Comments

@jpnielsen
Copy link

jpnielsen commented Aug 4, 2021

https://community.vcvrack.com/t/will-marbles-ever-get-fixed/13800/10

There indeed appears to be a discrepancy in the code between the original hardware and the Audible Instruments versions.

The Mutable Instruments code defines the minor scale as following in settings.cc :

// C minor
  {
    1.0f,
    12,
    {
      { 0.0000f, 255 },  // C
      { 0.0833f, 16 },   // C#
      { 0.1667f, 96 },   // D
      { 0.2500f, 128 },  // Eb
      { 0.3333f, 8 },    // E
      { 0.4167f, 64 },   // F
      { 0.5000f, 4 },    // F#
      { 0.5833f, 192 },  // G
      { 0.6667f, 96 },   // G#
      { 0.7500f, 16 },   // A
      { 0.8333f, 128 },  // Bb
      { 0.9167f, 16 },   // B
    }
  },

While the Audible Instruments code has this in Marbles.cpp :

// C minor
	{
		1.0f,
		12,
		{
			{ 0.0000f, 255 },  // C
			{ 0.0833f, 16 },   // C#
			{ 0.1667f, 96 },   // D
			{ 0.2500f, 128 },  // Eb
			{ 0.3333f, 8 },    // E
			{ 0.4167f, 64 },   // F
			{ 0.5000f, 4 },    // F#
			{ 0.5833f, 192 },  // G
			{ 0.6667f, 16 },   // G#
			{ 0.7500f, 96 },   // A
			{ 0.8333f, 128 },  // Bb
			{ 0.9167f, 16 },   // B
		}
	},

The note A has the weight 96 that can make it happen occasionally, while the weight 16 in the Mutable Instruments code probably makes it almost never happen. It looks like the weights of G# and A have been swapped in the Audible Instruments code.

@cschol
Copy link
Contributor

cschol commented Nov 21, 2021

Confirmed issue in 3363887.

@jpnielsen
Copy link
Author

jpnielsen commented Dec 5, 2021

$ diff marbles.cpp marbles.cpp.fix

46,47c46,47
<                       { 0.6667f, 16 },   // G#
<                       { 0.7500f, 96 },   // A
---
>                       { 0.6667f, 96 },   // G#
>                       { 0.7500f, 16 },   // A

hemmer added a commit to hemmer/AudibleInstruments that referenced this issue Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants