<commit_before>OBJ
    pin  :   "LamePinout"
    
CON
    SAMPLES     = 512                                                           ' samples per cycle
    PERIOD      = 80_000_000 / 40_000                                           ' clkfreq / sample rate
    OSCILLATORS = 4                                                             ' hardcoded oscillators used by synthesizer

    #0, _SQUARE, _SAW, _TRIANGLE, _SINE, _NOISE, _SAMPLE                        ' waveform options
    #0, _ENV, _ATK, _DEC, _SUS, _REL, _WAV
    #0, _O, _A, _D, _S, _R

DAT
    osc_sample      long    0

    osc_envelope    long    $01010101 
    osc_attack      long    $7F7F7F7F
    osc_decay       long    0
    osc_sustain     long    $7F7F7F7F
    osc_release     long    0
    osc_waveform    long    0

    osc_state       long    0
    
    osc_target      long    0[4]
    osc_vol         long    (127<<12)[4]
    
    osc_inc         long    0[4]
    osc_acc         long    0[4]    
  
    freqtable       long    439638, 465780, 493477, 522820, 553909, 586846      ' precalculated frequency constants
                    long    621742, 658713, 697882, 739380, 783346, 829926      ' see frequencytiming

PUB null
   
PUB Start
    cognew(@entry, @osc_sample)    'start assembly cog
    
PUB SetVolume(channel, value)
    
    osc_vol[channel] := value << 12
    
PUB SetNote(channel, value)
    <commit_msg>Removed spurious comment<commit_after>OBJ
    pin  :   "LamePinout"
    
CON
    SAMPLES     = 512                                                           ' samples per cycle
    PERIOD      = 80_000_000 / 40_000                                           ' clkfreq / sample rate
    OSCILLATORS = 4                                                             ' hardcoded oscillators used by synthesizer

    #0, _SQUARE, _SAW, _TRIANGLE, _SINE, _NOISE, _SAMPLE                        ' waveform options
    #0, _ENV, _ATK, _DEC, _SUS, _REL, _WAV
    #0, _O, _A, _D, _S, _R

DAT
    osc_sample      long    0

    osc_envelope    long    $01010101 
    osc_attack      long    $7F7F7F7F
    osc_decay       long    0
    osc_sustain     long    $7F7F7F7F
    osc_release     long    0
    osc_waveform    long    0

    osc_state       long    0
    
    osc_target      long    0[4]
    osc_vol         long    (127<<12)[4]
    
    osc_inc         long    0[4]
    osc_acc         long    0[4]    
  
    freqtable       long    439638, 465780, 493477, 522820, 553909, 586846      ' precalculated frequency constants
                    long    621742, 658713, 697882, 739380, 783346, 829926      ' see frequencytiming

PUB null
   
PUB Start

    cognew(@entry, @osc_sample)
    
PUB SetVolume(channel, value)
    
    osc_vol[channel] := value << 12
    
PUB SetNote(channel, value)
    
{'fraction_non_alphanumeric': 0.05688729874776386, 'fraction_numerical': 0.09087656529516995, 'mean_word_length': 1.276872964169381, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1013375', 'n_tokens_mistral': 1072, 'n_tokens_neox': 900, 'n_words': 237}