login

online now

We have 77 guests and no members online

search

 

instrument modeling



GinSing can be configured to work like a musical instrument when placed in poly mode. Up to six voices can be played simultaneously. When entering voice mode, the DCOs. mixers, and envelope generators are configured to create identical voices mapped directly to the outout. A default envelope is applied to all voices as well to provide a more musical character. The software interface allows you to address all voices simultaneously or individually if you wish to customize each voice. Modulation is limited in this configiration, but you can model simple instrument characteristics and can use the built-in note table to generate precise musical tones, chords, and harmonies.

GinSing note selection frequencies are defined to provide a tempered Concert A 440 musical scale. You can also specify your own frequencies to each voice if needed, and bend between frequencies (or notes) for portamento and other more synth-like effects. Using only the setNote() and trigger() commands you can create a simple song:
#define NumNotes 10
GSNote bass[NumNotes] = {C_3,E_3,D_3,F_3,E_3,G_3,E_3,F_3,D_3,E_3};
GSNote lead[NumNotes] = {C_6,D_6,E_6,F_6,G_6,G_6,F_6,E_6,D_6,C_6};
GSNote treb[NumNotes] = {G_5,E_5,F_5,D_5,E_5,C_5,E_5,D_5,F_5,E_5};
for ( int loopCnt = 0; loopCnt < 8; loopCnt++ )
{
  for ( int noteIdx = 0; noteIdx < NumNotes; noteIdx++ )
  {
     setNote ( 0 , bass [ noteIdx ] ); trigger ( 0 );
     setNote ( 1 , treb [ noteIdx ] ); trigger ( 1 );
     setNote ( 2 , lead [ noteIdx ] ); trigger ( 2 );
     delay ( 250 );
  }
}

musical note table



note f Hz
note f Hz
note f Hz
note f Hz
note f Hz note f Hz
note f Hz
note f Hz








C_0

16.352

C_1

32.703

C_2

65.406

C_3

130.813

C_4

261.625

C_5

523.251

C_6

1,046.502

C_7

2,093.004

CS_0

17.324

CS_1

34.648

CS_2

69.296

CS_3

138.591

CS_4

277.183

CS_5

554.365

CS_6

1,108.730

CS_7

2,217.460

D_0

18.354

D_1

36.708

D_2

73.416

D_3

146.832

D_4

293.665

D_5

587.329

D_6

1,174.659

D_7

2,349.317

DS-0

19.445

DS_1

38.891

DS_2

77.782

DS_3

155.563

DS_4

311.127

DS_5

622.254

DS_6

1,244.508

DS_7

2,489.015

E_0

20.602

E_1

41.203

E_2

82.407

E_3

164.814

E_4

329.627

E_5

659.255

E_6

1,318.510

E_7

2,637.020

F_0

21.827

F_1

43.654

F_2

87.307

F_3

174.614

F_4

349.228

F_5

698.456

F_6

1,396.913

F_7

2,793.825

FS_0

23.125

FS_1

46.249

FS_2

92.499

FS_3

184.997

FS_4

369.994

FS_5

739.989

FS_6

1,479.977

FS_7

2,959.955

G_0

24.500

G_1

48.999

G_2

97.999

G_3

195.998

G_3

391.995

G_5

783.991

G_6

1,567.982

G_7

3,135.963

GS_0

25.957

GS_1

51.913

GS_2

103.826

GS_3

207.652

GS_4

415.305

GS_5

830.609

GS_6

1,661.219

GS_7

3,322.437

A_0

27.500

A_1

55.000

A_2

110.000

A_3

220.000

A_4

440.000

A_5

880.000

A_6

1,760.000

A_7

3,520.000

AS_0

29.135

AS_1

58.270

AS_2

116.541

AS_3

233.082

AS_4

466.164

AS_5

932.328

AS_6

1,864.655

AS_7

3,729.310

B_0

30.868

B_1

61.735

B_2

123.471

B_3

246.942

B_4

493.883

B_5

987.767

B_6

1,975.533

B_7

3,951.067