LMMS
Loading...
Searching...
No Matches
cmfmcsop.cpp File Reference
#include <string.h>
#include <stddef.h>
#include "cmfmcsop.h"
#include "debug.h"

Classes

class  binistream_closer

Enumerations

enum  {
  CHANNEL_RHY_BD = 6 , CHANNEL_RHY_SN = 7 , CHANNEL_RHY_TOM = 8 , CHANNEL_RHY_TC = 9 ,
  CHANNEL_RHY_HH = 10
}

Functions

static int getSlotRegister (int base, int slotNr)
static int calculateAttenuation (int attenuation, int volumeColumn)

Variables

static const int16_t fNumbers [] = { 0x157, 0x16b, 0x181, 0x198, 0x1b0, 0x1ca, 0x1e5, 0x202, 0x221, 0x242, 0x264, 0x288 }
static const int8_t slotRegisterOffsets []
struct { 
   int8_t   slotOp1 
   int8_t   slotOp2 
channelSlots [] = { {0, 3}, {1, 4}, {2, 5}, {6, 9}, {7, 10}, {8, 11}, {12, 15}, {13, 16}, {14, 17}}
static const int8_t channelSlotsRhythm [] = { -1, -1, -1, -1, -1, -1, 12, 16, 14, 17, 13}

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHANNEL_RHY_BD 
CHANNEL_RHY_SN 
CHANNEL_RHY_TOM 
CHANNEL_RHY_TC 
CHANNEL_RHY_HH 

Function Documentation

◆ calculateAttenuation()

int calculateAttenuation ( int attenuation,
int volumeColumn )
static

◆ getSlotRegister()

int getSlotRegister ( int base,
int slotNr )
inlinestatic

Variable Documentation

◆ [struct]

const struct { ... } channelSlots[]

◆ channelSlotsRhythm

const int8_t channelSlotsRhythm[] = { -1, -1, -1, -1, -1, -1, 12, 16, 14, 17, 13}
static

◆ fNumbers

const int16_t fNumbers[] = { 0x157, 0x16b, 0x181, 0x198, 0x1b0, 0x1ca, 0x1e5, 0x202, 0x221, 0x242, 0x264, 0x288 }
static

◆ slotOp1

int8_t slotOp1

◆ slotOp2

int8_t slotOp2

◆ slotRegisterOffsets

const int8_t slotRegisterOffsets[]
static
Initial value:
= {
0, 1, 2, 3, 4, 5,
8, 9, 10, 11, 12, 13,
16, 17, 18, 19, 20, 21
}