@nataliapc/mcp-openmsx
Version:
Model context protocol server for openMSX automation and control
1 lines • 21.2 MB
JSON
{"version":1,"metadata_config":{},"items":[{"id":"7458a565-42d6-4e26-a83e-94b305ca531e","metadata":{"id":"msxdocs_audio_psg_registers--0","document":"PSG Registers Index PSG Registers overview Frequency control registers White noise frequency control register PSG voice and I/O port control register Amplitude and volume control registers Envelope Form and Period Control Registers PSG I/O Parallel Port Registers PSG Registers overview The PSG has 16 registers in which the content can be read and written except for register 14 which can only be read. To access the PSG registers, Bios in Main-ROM has two routines. The first is WRTPSG (00093h) which allows you to configure the PSG. The second, RDPSG (00096h), is used to read contents of a register. There is also a routine in Bios of the Main-ROM called GICINI (00090h), which is used to initialize the PSG and the data of the instruction PLAY. Once initialized, all registers from 0 to 13 will be set to zero except register 0 which will have the value 01010101b (55h), register 7 which will have 10111000b (B8h) and register 11 which will have 1011b (0BH) for the period of the envelope. PSG registers are also directly accessible through the I/O ports: 0A0h, 0A1h and 0A2h. To write in a register directly via the I/O ports, you must write the register number to port 0A0h then the value to be written to port 0A1h. Take care to cut interrupts while writing register number and value. To read a register via the I/O ports, write the register number to read to port 0A0h then read the value from port 0A2h. Frequency control registers The first six registers are used to set the frequency to be generated to produce a sound. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":0,"lastChunk":false},"vector":[-0.017992738634347916,-0.06490712612867355,-0.10236037522554398,-0.042159222066402435,-0.11801713705062866,0.0022578805219382048,0.008812269195914268,0.09148981422185898,-0.020668691024184227,-0.00901044625788927,0.0025476794689893723,0.016877364367246628,-0.02271769940853119,-0.10056649148464203,0.017744721844792366,-0.07046132534742355,0.002638351172208786,0.026246091350913048,0.024297025054693222,-0.027661029249429703,0.05670507624745369,0.015638621523976326,-0.05894980952143669,-0.045020535588264465,-0.05192795768380165,-0.01626526564359665,0.03101625293493271,0.09618420898914337,0.09085429459810257,-0.025979263707995415,0.005745084956288338,0.09852519631385803,0.07897589355707169,0.022892115637660027,-0.0032441166695207357,0.007285599131137133,0.13398893177509308,-0.1437522917985916,-0.034643031656742096,-0.03062010556459427,0.022372884675860405,0.031787775456905365,-0.027406999841332436,0.05729629099369049,-0.0026539075188338757,0.00652907881885767,-0.06721608340740204,0.01217056717723608,-0.040062934160232544,-0.06812460720539093,-0.016794078052043915,0.004642348736524582,0.00829540565609932,0.01862204074859619,-0.03900519013404846,-0.024870142340660095,0.07553141564130783,-0.00346562173217535,0.056337591260671616,0.0383213609457016,-0.08290008455514908,0.011160483583807945,-0.05784072354435921,-0.03058815561234951,0.018553053960204124,0.008534451946616173,0.07329437881708145,-0.026205280795693398,0.03262823820114136,-0.09269015491008759,-0.14513222873210907,0.00628914637491107,-0.06253314018249512,0.03917323052883148,-0.07622744143009186,0.08103682845830917,-0.01460347417742014,-0.02787412889301777,0.015836121514439583,-0.1425602287054062,0.05838029831647873,-0.001507564797066152,0.012251896783709526,-0.03363707289099693,-0.04121812805533409,-0.008403502404689789,-0.017617417499423027,0.04191748425364494,0.031163545325398445,0.011766904965043068,-0.04563968628644943,-0.019937733188271523,-0.05483079329133034,-0.015322074294090271,-0.004216676112264395,0.04508191719651222,0.0012365259462967515,0.04643404856324196,0.050843458622694016,0.02764344960451126,0.04170391336083412,0.006535382941365242,-0.02839856781065464,0.0734926387667656,-0.024806085973978043,-0.05074325576424599,-0.06983254849910736,0.01819097436964512,-0.08710164576768875,-0.05789448320865631,-0.054191239178180695,0.09671425819396973,0.014822999015450478,0.01897851563990116,0.05278380215167999,0.06525322794914246,-0.010987536981701851,0.013035756535828114,-0.006675464101135731,-0.006369630806148052,0.014434993267059326,0.013948310166597366,-0.057294901460409164,0.0700652226805687,0.003941066097468138,-0.03505922853946686,0.007833793759346008,8.017564279591017e-33,-0.015028844587504864,0.04393719509243965,0.020235203206539154,-0.0661817267537117,-0.036721084266901016,0.0016034696018323302,-0.011641813442111015,-0.02446838654577732,-0.03137966990470886,0.10578403621912003,-0.030664844438433647,0.0161385927349329,0.012543942779302597,-0.01758519746363163,0.007503953296691179,-0.027039507403969765,-0.018484577536582947,0.06750243157148361,-0.03615967929363251,0.03164127841591835,0.03565243259072304,0.04714076593518257,0.04779435694217682,0.006933074910193682,0.10052213817834854,0.14271041750907898,-0.08225253969430923,-0.05334505811333656,0.008229518309235573,0.007430729456245899,0.04274356737732887,-0.017605289816856384,-0.033351507037878036,0.012143130414187908,0.021530700847506523,-0.0782502219080925,-0.011411026120185852,-0.045582160353660583,0.05843759700655937,0.005325285252183676,0.03101062960922718,-0.050137124955654144,-0.03021898865699768,0.006888808682560921,-0.06668900698423386,-0.04977169260382652,-0.029000433161854744,-0.006863071583211422,0.05756799876689911,0.053163982927799225,0.05538186430931091,-0.008379542268812656,-0.08161058276891708,0.008829338476061821,0.05752753093838692,-0.05425518751144409,0.0027100015431642532,0.009531195275485516,0.023945732042193413,0.1572791039943695,0.021686162799596786,0.08050183206796646,-0.011137962341308594,0.0011825506808236241,-0.004160825628787279,0.01055921521037817,-0.03968081995844841,-0.0010700100101530552,0.051319122314453125,-0.007261805236339569,-0.05338108912110329,-0.0010342374444007874,0.01750342734158039,0.0011983963195234537,-0.023230090737342834,0.022063789889216423,-0.01458489429205656,0.01300234068185091,-0.1627456247806549,0.032672248780727386,-0.002927926369011402,0.1021571159362793,-0.12815803289413452,-0.006819142494350672,-0.026942631229758263,0.009328673593699932,0.05839964747428894,-0.009901747107505798,-0.0849195122718811,-0.08823879063129425,0.014936089515686035,0.0051171439699828625,0.039438869804143906,-0.0226917527616024,-0.05690239742398262,-9.189501290634128e-33,-0.016141733154654503,-0.012853316031396389,-0.047086700797080994,-0.0028936697635799646,-0.11052541434764862,-0.014327959157526493,0.09125200659036636,-0.10206996649503708,-0.020775534212589264,-0.0561305396258831,-0.01826193928718567,0.0553504154086113,0.061348386108875275,-0.022548172622919083,0.004709593486040831,-0.06953214854001999,-0.06414687633514404,0.011330803856253624,0.02138654701411724,0.040525175631046295,-0.0005834450712427497,0.07360631972551346,0.0625057965517044,0.03041299805045128,-0.017695128917694092,-0.011952986940741539,-0.012882193550467491,0.04598630964756012,0.07722599804401398,0.03468194603919983,0.04935808107256889,0.02390102483332157,0.037281572818756104,0.004156278911978006,0.0038883157540112734,-0.027945060282945633,0.04794696718454361,0.00891016609966755,0.03567170351743698,-0.002621962921693921,0.028335772454738617,0.0639888346195221,-0.02152615785598755,-0.0031801487784832716,-0.026029206812381744,0.05914953723549843,0.017991939559578896,0.01446483563631773,-0.04805099219083786,-0.035723764449357986,0.031654488295316696,0.003384439507499337,0.022613603621721268,0.02702803537249565,-0.02064700238406658,0.016043415293097496,-0.004687642678618431,-0.061086900532245636,0.06877736002206802,-0.03246930614113808,0.06900609284639359,-0.01003507524728775,-0.018927406519651413,-0.03326959162950516,0.03956137225031853,0.02514633536338806,0.0930439904332161,-0.11168889701366425,0.03107803873717785,-0.04527454823255539,-0.012338469736278057,-0.02854599431157112,0.0326707698404789,-0.04283236712217331,0.013873583637177944,0.05899789556860924,-0.15861596167087555,-0.018026137724518776,-0.07151512801647186,0.016906000673770905,-0.08618080615997314,0.027515653520822525,-0.022787436842918396,0.06660351157188416,-0.0025081902276724577,-0.050133831799030304,-0.04044850915670395,0.05542389303445816,0.006599603686481714,-0.1098034456372261,-0.022108888253569603,0.03865538537502289,0.07298719882965088,0.019746188074350357,-0.027475088834762573,-5.71975284913151e-8,0.09033124148845673,-0.11824565380811691,0.058783721178770065,0.02896423265337944,0.04936590418219566,-0.05718160420656204,-0.03496117889881134,-0.10092230141162872,-0.031555842608213425,0.02051013894379139,0.0301747415214777,-0.014711400493979454,-0.023186413571238518,-0.06726863980293274,0.058084260672330856,0.039201509207487106,0.06455762684345245,0.016598397865891457,-0.0400291346013546,-0.04094758629798889,-0.0052359988912940025,-0.025906875729560852,-0.04051120951771736,0.03134794905781746,0.04841378331184387,-0.02263871766626835,-0.0037578572519123554,0.02127947472035885,0.018537532538175583,-0.007683690637350082,0.13242866098880768,-0.03051423653960228,0.005411829333752394,0.007712153717875481,0.03875091299414635,-0.010992334224283695,0.020977195352315903,0.04677433520555496,0.062266528606414795,-0.016979381442070007,-0.035470329225063324,-0.07753429561853409,-0.07863203436136246,0.022313930094242096,-0.040813226252794266,0.06224505975842476,-0.012311606667935848,-0.07141797989606857,0.0026758280582726,0.050224438309669495,-0.02848695032298565,0.03666045516729355,-0.0043449788354337215,0.04332241043448448,0.01503765769302845,0.03952079266309738,-0.06722070276737213,-0.04028003662824631,0.050440531224012375,0.07488750666379929,-0.1209881603717804,0.1304762363433838,-0.002098358701914549,-0.08628299087285995],"norm":1.0000000412067804},{"id":"8837ee32-4b53-49c2-abca-1f4dcba47d0e","metadata":{"id":"msxdocs_audio_psg_registers--1","document":"0 +-------+-------+-------+-------+-------+-------+-------+-------+ Register 0 | 8 least significant bits of voice frequency 1 | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 1 | - | - | - | - | 4 MSB of voice frequency 1 | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 2 | 8 least significant bits of voice frequency 2 | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 3 | - | - | - | - | 4 MSB of voice frequency 2 | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 4 | 8 least significant bits of voice frequency 3 | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 5 | - | - | - | - | 4 MSB of voice frequency 3 | +-------+-------+-------+-------+-------+-------+-------+-------+ Value indicating the frequency of the white noise generator is 5 bits. The value to be written is obtained using the following","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":1,"lastChunk":false},"vector":[0.018786216154694557,-0.02799575962126255,-0.09494279325008392,-0.09332595020532608,-0.13193279504776,0.017021985724568367,0.04011404141783714,0.01700945943593979,-0.0168765876442194,-0.02668679691851139,0.022903215140104294,-0.1323639154434204,0.03452666848897934,-0.0717301294207573,-0.02990652620792389,0.010024373419582844,0.023559100925922394,0.01104302890598774,-0.04238893836736679,-0.08250751346349716,0.0036469590850174427,0.07938669621944427,-0.05775047093629837,-0.06779208034276962,0.08654814213514328,-0.012649022042751312,-0.0618894062936306,0.039584774523973465,0.06014681234955788,-0.05740737169981003,-0.025012407451868057,0.10466940701007843,0.10725931823253632,0.03129640966653824,-0.004312135744839907,-0.07304538041353226,0.02932155504822731,0.02950209192931652,-0.00992801133543253,-0.015196491032838821,-0.045486271381378174,0.015357372350990772,0.029937664046883583,0.010364875197410583,-0.02494361810386181,-0.01244980189949274,-0.13485734164714813,0.09458452463150024,-0.05442100390791893,-0.012443426065146923,-0.04060504212975502,0.07592029869556427,-0.0010791100794449449,0.06556937843561172,-0.07765472680330276,0.006225484423339367,0.00450099864974618,0.024729089811444283,0.03883486986160278,0.08309788256883621,-0.072786845266819,0.008839478716254234,-0.09359801560640335,-0.042567312717437744,0.03904236480593681,0.03698461502790451,-0.061143144965171814,-0.08222470432519913,-0.05637961998581886,0.046193677932024,-0.1055104210972786,-0.021547002717852592,-0.027670826762914658,0.06695165485143661,0.024422548711299896,-0.022590337321162224,-0.027320673689246178,-0.031075501814484596,0.04124154523015022,-0.06322412937879562,-0.00033632712438702583,-0.060872167348861694,-0.0478891097009182,-0.06246302276849747,0.03277486562728882,-0.06872624158859253,0.007808244787156582,-0.005587260704487562,-0.020964859053492546,-0.05500786751508713,-0.08918313682079315,0.021566759794950485,-0.01490065734833479,-0.06161324679851532,0.005953179206699133,0.0647168830037117,-0.022751523181796074,0.0680895447731018,0.06088733673095703,0.10581330955028534,-0.013753337785601616,-0.08541339635848999,-0.11548514664173126,-0.0311545729637146,-0.08618035167455673,-0.0638526976108551,0.007282659411430359,0.0756695494055748,-0.008394676260650158,-0.025676703080534935,-0.02789088524878025,0.03175165504217148,0.007191447541117668,-0.06782092154026031,0.03213443234562874,0.017476461827754974,0.010876508429646492,0.012922905385494232,0.05763643980026245,-0.0270262211561203,-0.024975260719656944,-0.0054635838605463505,-0.03414482995867729,0.04322857782244682,-0.02664373256266117,-0.029302209615707397,-0.016483621671795845,3.2343352374050916e-33,-0.01564639061689377,-0.006100260186940432,-0.04145145043730736,-0.07850614935159683,0.04170091077685356,0.04989757388830185,-0.07070346176624298,0.015668774023652077,0.002034741686657071,0.03838545083999634,-0.028712406754493713,-0.038264110684394836,0.007131572347134352,-0.029402773827314377,0.010710729286074638,-0.034891098737716675,0.01338046696037054,0.030782286077737808,-0.054267555475234985,-0.018417958170175552,0.07813125103712082,0.027041055262088776,0.04755229502916336,0.02398473396897316,0.13157883286476135,0.007873216643929482,-0.012342344038188457,-0.07214946299791336,0.03437582030892372,0.016344459727406502,-0.008339185267686844,-0.0068227918818593025,-0.0023375973105430603,-0.08367309719324112,0.0664304867386818,-0.03561464324593544,0.022065268829464912,0.016406534239649773,0.08820291608572006,0.004440837074071169,-0.06778284162282944,-0.0003406392643228173,-0.01328772772103548,-0.11832046508789062,-0.06918588280677795,-0.06832551211118698,-0.04709290340542793,0.02185528539121151,0.00952579639852047,0.029540300369262695,0.035143230110406876,-0.005525302607566118,-0.0426623560488224,0.10524715483188629,0.06915079057216644,-0.016121482476592064,0.010373917408287525,0.07030187547206879,0.0160310547798872,0.20171521604061127,-0.050923872739076614,0.09041672199964523,-0.0025288364849984646,-0.065587118268013,0.034458227455616,0.020381571725010872,0.0020041726529598236,-0.0036844490095973015,0.036898743361234665,-0.01025682594627142,0.00608746288344264,-0.023700891062617302,0.12683473527431488,0.012432108633220196,-0.08527924120426178,0.04954228177666664,-0.0278950072824955,0.042835768312215805,-0.06272914260625839,-0.05006624013185501,-0.00033257881295867264,0.05611054226756096,-0.052601151168346405,-0.0012759758392348886,-0.04236534237861633,-0.03152332827448845,0.011199693195521832,-0.07050789892673492,-0.08025991171598434,-0.0475403293967247,-0.04590482637286186,0.01654183864593506,0.005146160256117582,-0.012085736729204655,-0.08612436056137085,-6.660530254647581e-33,-0.08637918531894684,0.10847191512584686,0.05945464223623276,0.06030290201306343,-0.031252697110176086,-0.0323910117149353,0.12504231929779053,-0.07392780482769012,0.03456311300396919,0.03344649076461792,0.021401286125183105,0.019412312656641006,0.028928449377417564,-0.024896590039134026,0.06314641237258911,-0.04185086116194725,-0.016774898394942284,0.08533477038145065,-0.006831213366240263,0.053746022284030914,0.01462175790220499,0.09841383248567581,-0.003916032612323761,0.0506717711687088,-0.029922138899564743,0.0015466794138774276,-0.09367472678422928,0.04557660222053528,-0.025768937543034554,-0.03922514244914055,-0.07232033461332321,-0.0023682203609496355,-0.062120504677295685,-0.023372970521450043,0.03403304144740105,-0.038486331701278687,0.0565854012966156,0.05196350812911987,0.038232289254665375,-0.006373741663992405,0.05048574134707451,0.007310965098440647,-0.013356441631913185,-0.04977194592356682,0.008244479075074196,-0.016355162486433983,0.009682978503406048,0.042844824492931366,-0.05473218485713005,-0.08198072761297226,0.045870885252952576,-0.004746835213154554,0.022284792736172676,0.05416863411664963,-0.0679490715265274,-0.00095418153796345,-0.03057914413511753,-0.03593374788761139,0.05065382644534111,0.00037678887019865215,-0.017308596521615982,-0.052955612540245056,0.020981576293706894,-0.021124837920069695,0.14488597214221954,-0.0011836191406473517,0.01862584613263607,-0.02792498469352722,-0.009810146875679493,-0.005041710566729307,0.06650140136480331,0.010078292340040207,0.03935277834534645,-0.013825034722685814,-0.017958590760827065,0.02931002900004387,-0.08618281781673431,-0.03653780743479729,-0.08200407028198242,0.01530581433326006,-0.048775605857372284,0.02431330271065235,0.02309064380824566,0.006023918744176626,-0.025548800826072693,0.043159086257219315,-0.012875518761575222,-0.019517190754413605,-0.021638864651322365,-0.01377119217067957,-0.03494219109416008,0.044686537235975266,0.01906154304742813,-0.04397968202829361,0.03241788223385811,-4.0157676295393685e-8,0.036774080246686935,-0.11060358583927155,-0.051995646208524704,-0.02206065133213997,0.06725498288869858,-0.05280701816082001,-0.010467487387359142,-0.06746058911085129,-0.0026261175516992807,-0.05424274504184723,0.07564884424209595,-0.054430101066827774,-0.04072302207350731,-0.03212829306721687,0.034382760524749756,-0.006881444714963436,0.023250563070178032,-0.025422891601920128,-0.03262079134583473,-0.08782127499580383,0.014653072692453861,0.04111086204648018,0.019292835146188736,-0.008561830967664719,-0.06581534445285797,-0.02750460058450699,-0.0013627534499391913,0.13599896430969238,0.044149380177259445,0.03215012326836586,0.05341758579015732,0.04242030158638954,-0.029265007004141808,-0.03898264840245247,0.011605975218117237,-0.006857083644717932,-0.04642464965581894,0.068076491355896,-0.01628359965980053,-0.000170376239111647,-0.016826342791318893,-0.010921197012066841,-0.0961001068353653,0.08072139322757721,0.04000944644212723,-0.010126612149178982,-0.005720102693885565,-0.06660004705190659,0.052304595708847046,-0.05019395798444748,-0.01794831082224846,0.07797438651323318,0.026293788105249405,-0.019141551107168198,-0.01343697402626276,-0.04254039004445076,-0.0633125901222229,-0.015079989098012447,0.03631776198744774,0.056396834552288055,-0.03662249445915222,0.042298950254917145,0.02614603377878666,-0.00592960137873888],"norm":1.0000000598704952},{"id":"81cd1e27-8866-4aa9-b6a2-79227071c49a","metadata":{"id":"msxdocs_audio_psg_registers--2","document":"formula: Value = Fi / (16 x Fb) Fi = Internal frequency of PSG (1789772.5 Hz on MSX) Fb = Tone frequency master to be produced (varies between between 27 and 111.860 Hz) For simplicity, here is a","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":2,"lastChunk":false},"vector":[-0.009784526191651821,0.02321700006723404,-0.11802203953266144,-0.008948304690420628,-0.06647346913814545,0.07524345070123672,0.01896502450108528,0.1070156916975975,-0.02332758903503418,0.0009216727339662611,0.008347227238118649,-0.03886907547712326,0.038649704307317734,-0.09146884828805923,0.07267651706933975,-0.005716976244002581,0.046118512749671936,-0.03525787964463234,-0.03225089982151985,-0.028496969491243362,0.057433146983385086,-0.027770277112722397,-0.04325021430850029,-0.04014088213443756,-0.027024202048778534,-0.052876006811857224,-0.025705497711896896,0.013162730261683464,0.061076048761606216,-0.0029946831054985523,0.025937382131814957,0.14414483308792114,0.06704296171665192,0.023755662143230438,-0.022288721054792404,-0.08612316846847534,0.06677856296300888,-0.07317361235618591,0.010788751766085625,-0.004592070821672678,0.06498183310031891,0.024935012683272362,0.06770092248916626,0.03164862096309662,-0.015849856659770012,0.04301217943429947,-0.0805688425898552,0.05734297260642052,-0.08981195092201233,0.0015505017945542932,0.07893980294466019,-0.014505586586892605,-0.032007720321416855,0.0955965667963028,0.07515757530927658,0.06351054459810257,0.031087107956409454,-0.016761228442192078,0.026462409645318985,0.010563637129962444,-0.07093526422977448,-0.058380480855703354,-0.04613962024450302,-0.03473365306854248,0.11997104436159134,0.00916006974875927,-0.00663355877622962,-0.10847647488117218,-0.05984920635819435,-0.01715080253779888,-0.08066225796937943,-0.031154394149780273,-0.001990052405744791,0.014148424379527569,0.004641477484256029,0.03055715560913086,-0.05503014847636223,-0.012568227015435696,0.04805441573262215,0.009891893714666367,0.04772123694419861,-0.041190557181835175,-0.0171958077698946,0.005202433560043573,0.05759043991565704,-0.015059777535498142,0.048093169927597046,0.03632885962724686,-0.014909829013049603,0.07279005646705627,-0.06666284054517746,0.06629520654678345,-0.03769892081618309,0.03476233407855034,-0.0911257266998291,0.05352141335606575,-0.05762409418821335,-0.021159056574106216,0.11973007768392563,0.012216655537486076,0.02797543816268444,0.021132031455636024,0.025448361411690712,-0.003426556009799242,-0.15846233069896698,-0.02004844881594181,-0.011389008723199368,0.08257298171520233,-0.025476541370153427,0.006639034952968359,-0.04167383536696434,0.04558543115854263,-0.015970638021826744,-0.05035857856273651,0.1159728467464447,0.048206627368927,0.013914540410041809,0.020262060686945915,0.08664197474718094,-0.12137097120285034,0.04533172398805618,0.02474045753479004,-0.07036269456148148,0.04437793418765068,-0.0987929105758667,0.010767255909740925,-0.040803227573633194,2.7618616298103893e-33,-0.07131984084844589,0.054996684193611145,0.09442891925573349,-0.11367902159690857,-0.03295092657208443,0.011546698398888111,-0.06989550590515137,-0.016606254503130913,0.018752561882138252,0.048707619309425354,-0.04157602787017822,0.056977130472660065,0.000048349102144129574,-0.01667657122015953,-0.023383481428027153,-0.055853575468063354,0.012098795734345913,-0.005902810022234917,0.004750184714794159,0.02463196963071823,0.046258557587862015,0.03577989339828491,0.07645189762115479,0.04149884730577469,0.06830470263957977,0.09015635401010513,-0.010355600155889988,0.07455708086490631,-0.013365031220018864,-0.023617014288902283,0.03341003134846687,0.019151102751493454,-0.019112583249807358,-0.06836993247270584,-0.019456986337900162,-0.03955480456352234,0.04375971108675003,0.007896412163972855,0.013208575546741486,0.06020176038146019,0.07962454855442047,0.03142033517360687,0.020288078114390373,0.0044823600910604,-0.0014286625664681196,-0.028597505763173103,-0.062471047043800354,-0.04995177313685417,0.10601615160703659,0.09440676867961884,-0.03637317940592766,-0.019849708303809166,-0.023819992318749428,0.041801225394010544,0.05646870657801628,0.0645398274064064,0.01556973997503519,0.04783499613404274,-0.0016350036021322012,0.013233432546257973,0.10128211230039597,-0.0031953633297234774,0.08428650349378586,-0.03991859778761864,0.009488374926149845,0.042556509375572205,0.004326607100665569,0.021589646115899086,-0.02501704730093479,-0.0496150366961956,0.01718350127339363,0.04260670393705368,0.020681487396359444,-0.06271690130233765,-0.00406555226072669,-0.04858642816543579,-0.04017207771539688,0.054094865918159485,-0.09675268083810806,0.0458490215241909,-0.06498561054468155,0.05038544908165932,-0.12405943125486374,-0.04943714290857315,-0.0017186312470585108,0.006714290473610163,0.004143772646784782,-0.0021101953461766243,-0.06878100335597992,-0.04406437650322914,-0.004812356550246477,0.01806776411831379,-0.0031485138460993767,0.05383956804871559,-0.05907647684216499,-4.1879080097356395e-33,0.0025924011133611202,0.05683878809213638,0.012348263524472713,0.07437334209680557,-0.021597610786557198,0.0014215054688975215,0.08899818360805511,-0.0021809469908475876,0.04795701056718826,0.004135260358452797,0.03418648988008499,-0.02824472263455391,0.033038266003131866,-0.03385167196393013,-0.019901162013411522,0.00934121385216713,-0.07264939695596695,0.03151480853557587,-0.051190562546253204,0.0009719090303406119,-0.01836998015642166,0.02547485940158367,0.05903911963105202,0.08040548861026764,-0.031106773763895035,-0.03902978077530861,0.009206030517816544,-0.02334098517894745,-0.01769755408167839,0.029123660176992416,-0.0362546369433403,-0.01622799038887024,0.04815889894962311,-0.007051557768136263,-0.07565595954656601,-0.01863795705139637,0.08476454764604568,-0.009768136776983738,0.026563407853245735,-0.02532009594142437,-0.06004061549901962,0.08032600581645966,0.04081640765070915,-0.04732319712638855,-0.07327871769666672,0.079374760389328,0.06337719410657883,-0.10513675957918167,-0.020358165726065636,0.012137798592448235,0.07808379828929901,-0.04116477072238922,-0.014934726059436798,-0.0426490344107151,-0.07127084583044052,-0.016711624339222908,-0.07898859679698944,0.01652318798005581,-0.009068978019058704,0.015437602996826172,0.0672384649515152,-0.005403431598097086,-0.049783773720264435,-0.04634111747145653,-0.002489709062501788,0.042739998549222946,0.04448864236474037,-0.070977583527565,0.05063547566533089,0.0663546547293663,0.013037913478910923,0.0921408012509346,-0.0027206591330468655,0.0880141332745552,0.006346096750348806,0.0161224864423275,-0.035561397671699524,-0.004457289353013039,-0.05887092649936676,0.04196567460894585,-0.054946720600128174,0.01145013514906168,-0.07757493853569031,-0.003057115711271763,-0.048740826547145844,-0.12505489587783813,-0.005135268904268742,-0.012244372628629208,-0.04297983646392822,-0.035871002823114395,-0.042725592851638794,0.077234648168087,-0.027686798945069313,-0.03855525329709053,-0.0052004847675561905,-3.725263297837955e-8,-0.013486642390489578,-0.09406070411205292,-0.023931950330734253,-0.02369542606174946,0.030787989497184753,0.025599274784326553,0.052598532289266586,-0.18185119330883026,-0.012514502741396427,-0.028354408219456673,0.015078427270054817,-0.058951832354068756,0.03849838301539421,-0.04687274992465973,-0.006262262351810932,-0.08575157076120377,0.03643737733364105,0.05440707877278328,0.007041697856038809,-0.0038207510951906443,-0.023876726627349854,0.024710368365049362,0.024190731346607208,-0.00662354426458478,-0.001838753349147737,-0.007433698046952486,-0.06905017793178558,0.023366954177618027,-0.0226172786206007,0.04994429275393486,0.02306010201573372,-0.021410321816802025,-0.0307596605271101,-0.08799201250076294,-0.049105554819107056,0.071299247443676,-0.0072896829806268215,0.005506064742803574,0.08289892226457596,0.025764839723706245,-0.027340305969119072,-0.03888075426220894,-0.09207552671432495,-0.02810133807361126,-0.04017101600766182,0.0031092471908777952,0.00361429899930954,-0.03410825878381729,-0.07015246897935867,0.0385252982378006,0.05560929700732231,0.046474210917949677,-0.06693170964717865,-0.09535982459783554,-0.06502135843038559,0.03127336874604225,-0.041648950427770615,0.05471381917595863,-0.03957900032401085,-0.044358935207128525,-0.015516318380832672,0.017529768869280815,0.0219293013215065,-0.03239012509584427],"norm":0.9999999213670523},{"id":"b1733d09-cda8-4b27-8c29-d6c5f1dc7b6e","metadata":{"id":"msxdocs_audio_psg_registers--3","document":"table of musical notes by octave obtained according to the value indicated in registers 0-1, 2-3 or 4-5. | Note | Octave 1 | Octave 2 | Octave 3 | Octave 4 | Octave 5 | Octave 6 | Octave 7 | Octave 8 | |:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| |C|D5Dh|6AFh|357h|1ACh|0D6h|06Bh|035h|01Bh| |C#|C9Ch|64Eh|327h|194h|0CAh|065h|032h|019h| |D|BE7h|5F4h|2FAh|17Dh|0BEh|05Fh|030h|018h| |D#|B3Ch|59Eh|2CFh|168h|0B4h|05Ah|02Dh|016h| |E|A9Bh|54Eh|2A7h|153h|0AAh|055h|02Ah|015h| |F|A02h|501h|281h|140h|0A0h|050h|028h|014h| |F#|973h|4BAh|25Dh|12Eh|097h|04Ch|026h|013h| |G|8EBh|476h|23Bh|11Dh|08Fh|047h|024h|012h| |G#|86Bh|436h|21Bh|10Dh|087h|043h|022h|011h| |A|7F2h|3F9h|1FDh|0FEh*|07Fh|040h|020h|010h| |A#|780h|3C0h|1E0h|0F0h|078h|03Ch|01Eh|00Fh| |B|714h|38Ah|1C5h|0E3h|071h|039h|01Ch|00Eh| (*) 0FEh is the note produced by a tuning fork. For example, to produce the note Do in octave 4 by voice 1, we would write 1h in register 1 and ACh in","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":3,"lastChunk":false},"vector":[-0.020272573456168175,-0.016798576340079308,-0.11096368730068207,-0.08503633737564087,-0.1029771938920021,0.002045074477791786,-0.01685168221592903,0.018993498757481575,-0.010117201134562492,0.01416065264493227,0.07056806236505508,-0.09136020392179489,0.022762715816497803,-0.0901099294424057,-0.07744279503822327,-0.05860184133052826,-0.06186806410551071,0.017008930444717407,0.0005983234150335193,-0.04890860617160797,0.02138308249413967,0.028766699135303497,-0.02960009127855301,-0.06447050720453262,0.0880560651421547,0.0877353847026825,-0.05362960696220398,0.13858959078788757,0.001941537600941956,-0.09054649621248245,-0.01675945334136486,0.1315828561782837,0.022066984325647354,-0.00857297983020544,-0.025492630898952484,-0.005960056092590094,-0.057197656482458115,-0.0059285336174070835,0.01959279738366604,0.051028091460466385,0.04548123478889465,0.014198893681168556,0.0903610959649086,-0.05041377991437912,-0.012387645430862904,0.00435520987957716,-0.14983145892620087,-0.0071480670012533665,-0.07396902143955231,-0.02394779771566391,-0.004110159818083048,0.021769611164927483,0.006551770493388176,0.07738461345434189,-0.01025567576289177,-0.06103005260229111,0.017287950962781906,-0.01857125759124756,0.08224955946207047,0.03580702468752861,-0.03397417813539505,0.03068678453564644,-0.028109656646847725,-0.06773792952299118,-0.015759166330099106,-0.004656575154513121,-0.012319019995629787,-0.09984467923641205,-0.04287225753068924,0.003904994111508131,-0.07217521965503693,-0.019688555970788002,0.01565476879477501,-0.020932970568537712,-0.056656256318092346,-0.011098707094788551,0.024412032216787338,-0.06972935050725937,-0.058951422572135925,-0.09691257029771805,-0.030400168150663376,-0.024212786927819252,-0.06128580868244171,-0.03903835266828537,-0.06276647746562958,0.0009446618496440351,-0.036536525934934616,0.024866903200745583,-0.004611305892467499,-0.04081093519926071,-0.023183809593319893,0.057175710797309875,-0.11467000097036362,-0.05547010898590088,-0.04387111961841583,0.07582245022058487,0.06058037281036377,0.06973081082105637,0.060519300401210785,0.07320809364318848,0.022037355229258537,-0.04741985350847244,-0.03028741106390953,-0.0026787258684635162,-0.06736322492361069,0.06903059780597687,-0.032056596130132675,0.053074028342962265,-0.01622101292014122,-0.09538174420595169,-0.03614373877644539,0.03330003842711449,0.041737016290426254,-0.08318019658327103,0.06589389592409134,-0.06214595213532448,0.002838713116943836,-0.001446117414161563,0.06545212119817734,0.01867484487593174,0.06987681984901428,-0.036356497555971146,-0.006323754321783781,0.10450299829244614,-0.08248717337846756,0.007537419907748699,-0.0423891507089138,4.220913319712837e-33,-0.049958061426877975,0.012221313081681728,0.061011139303445816,-0.15110045671463013,0.029377883300185204,-0.003204859560355544,-0.09366834908723831,0.05413578823208809,-0.020560134202241898,0.03188787028193474,0.00126751814968884,-0.003250234527513385,0.0033061278518289328,-0.04901345074176788,-0.0057236198335886,-0.03727729618549347,0.05139694735407829,0.02015635557472706,-0.10085363686084747,-0.031922683119773865,0.04250558465719223,0.030634526163339615,0.04328837990760803,0.02168857678771019,0.06880734860897064,0.022623544558882713,0.03913253918290138,-0.048834867775440216,-0.016268566250801086,-0.0014760831836611032,0.05681256577372551,0.027496961876749992,-0.01441988255828619,-0.09789608418941498,-0.012539424933493137,-0.011220511980354786,-0.034643273800611496,0.01790781132876873,0.013709447346627712,-0.03223927691578865,0.012637719511985779,-0.03597442805767059,0.0195484459400177,0.014915806241333485,-0.0424124151468277,-0.002934942487627268,-0.027033844962716103,0.031905584037303925,0.12835772335529327,0.0030931003857403994,0.0310511514544487,-0.011792880482971668,-0.02935841493308544,0.07079057395458221,0.010393255390226841,0.031663186848163605,0.02818935737013817,0.02670709416270256,-0.006916101090610027,0.14945358037948608,-0.02653120458126068,0.043561987578868866,-0.025362547487020493,-0.06263039261102676,0.004222205374389887,0.01352444477379322,0.028599778190255165,-0.04142739996314049,0.02590109594166279,-0.002882863162085414,-0.05997297167778015,0.0011802599765360355,0.09076805412769318,0.027115486562252045,-0.04597911238670349,-0.02440742217004299,0.0006002815207466483,-0.012487813830375671,-0.025170592591166496,-0.06487144529819489,-0.046423811465501785,0.07136031240224838,-0.024701878428459167,-0.1198362484574318,-0.0605517141520977,-0.0433662049472332,0.034011658281087875,-0.07153968513011932,-0.05983274430036545,-0.056108955293893814,-0.10905340313911438,-0.009599074721336365,0.014052021317183971,-0.07340507954359055,-0.0732191726565361,-8.198176782542953e-33,0.038824714720249176,0.08657404780387878,0.023834949359297752,0.016794240102171898,0.0024677973706275225,-0.0009933954570442438,0.09810615330934525,0.0689476802945137,-0.016896028071641922,0.06355687230825424,0.06716997921466827,0.00912210438400507,0.0034594631288200617,-0.07276861369609833,0.07384926825761795,0.052592143416404724,0.008841578848659992,0.05018233507871628,-0.014442814514040947,-0.023603420704603195,-0.04800494387745857,0.038819219917058945,-0.04405335336923599,0.0670437291264534,-0.019094476476311684,-0.005054754670709372,0.008373876102268696,-0.004484911449253559,-0.02871762029826641,0.011067544110119343,-0.00036560121225193143,-0.06787943094968796,-0.05526692047715187,0.06512092798948288,0.01930561475455761,0.01974818855524063,0.016298633068799973,0.05913218483328819,-0.010566938668489456,0.08785324543714523,-0.008010183461010456,0.04016415402293205,0.042225535959005356,0.05014921724796295,-0.040917012840509415,0.056535977870225906,0.0909402146935463,0.08584330976009369,-0.057622965425252914,-0.05223057046532631,0.039982832968235016,-0.03011278808116913,-0.0013184761628508568,-0.02619779109954834,0.027946555987000465,0.04729463532567024,0.01464762631803751,-0.037228234112262726,-0.07812318205833435,-0.07925476878881454,0.02326267585158348,-0.037624336779117584,0.08013027161359787,-0.02546066977083683,0.06007516756653786,-0.017639901489019394,0.02648528479039669,-0.07535133510828018,-0.0021007820032536983,0.025213366374373436,0.01328344363719225,-0.011634943075478077,-0.01656515710055828,-0.007857372052967548,-0.01616375334560871,0.017906170338392258,-0.07328253984451294,-0.023780398070812225,-0.08120686560869217,0.015877990052103996,-0.018638253211975098,0.023083342239260674,0.0670715942978859,-0.00019476216402836144,-0.03807882219552994,0.0060689402744174,0.021137159317731857,0.0519462488591671,0.008014549501240253,-0.010861454531550407,-0.014724694192409515,0.048522356897592545,0.06082622706890106,-0.08519328385591507,0.05210746079683304,-4.114910012731343e-8,0.044753726571798325,-0.12940381467342377,-0.026327086612582207,0.004233815707266331,0.062345635145902634,-0.04539274796843529,0.027234258130192757,-0.06048209220170975,-0.035992782562971115,-0.06574122607707977,0.05447956547141075,-0.05421196296811104,-0.02555830217897892,-0.05416116863489151,-0.020777570083737373,-0.004470012150704861,0.04055481404066086,0.03017287887632847,-0.03881761059165001,-0.03788962587714195,-0.03266444429755211,0.08957086503505707,-0.027054931968450546,-0.056536685675382614,-0.06244968995451927,-0.03814620152115822,-0.1094675362110138,0.0625351294875145,0.02207808382809162,0.04161028936505318,0.074457548558712,-0.032674726098775864,0.07057986408472061,-0.07216709852218628,0.047908980399370193,-0.03394624963402748,-0.028101446107029915,0.030994998291134834,-0.016678260639309883,0.06806864589452744,-0.036672476679086685,0.044462114572525024,-0.038925427943468094,0.0662684515118599,0.06045369803905487,0.01994001865386963,-0.011735860258340836,-0.018587445840239525,0.07877779006958008,-0.004824062809348106,-0.05184866487979889,0.00912545807659626,-0.03622830659151077,-0.013941029086709023,-0.04578176140785217,-0.055648647248744965,-0.10416741669178009,0.03951270133256912,0.026574863120913506,-0.003900922602042556,0.04146597534418106,0.021282801404595375,0.09682788699865341,-0.01920832134783268],"norm":0.9999998980129237},{"id":"55e3a0ff-1871-4f42-ac8b-f3b43cc84017","metadata":{"id":"msxdocs_audio_psg_registers--4","document":"register 0. In practice, this looks like below. In assembler: WRTPSG\tequ\t00093h ; --> File header db\t0feh\t; Binary code file dw\tSTART\t; Program destination address dw\tEND\t; Program end address dw\tSTART\t; Program execution address ; --- org\t0c000h START: ld\tb,13 PSGini:\tld\ta,b\t; ld\te,0\t; 8 least significant bits cp\t7 jr\tnz,NoR7\t; Jump if register different from 7 ld\te,10111111b\t; Bit 7 to 1 and bit 6 to 0 NoR7:\tcall\tWRTPSG djnz\tPSGini\t; Loop to initialize registers ld\ta,0\t; Register 0 ld\te,0ach\t; 8 least significant bits call\tWRTPSG ld\ta,1\t; Register 1 ld\te,1\t; 4 most signifiant bits call\tWRTPSG ld\ta,8\t; Register 8 ld\te,1100b\t; Voice volume 1 to 12 call\tWRTPSG ld\ta,7\t; Register 7 ld\te,10111110b\t; Enable voice 1 call\tWRTPSG ret END: Once assembled and saved as \"V15O1C.BIN\", run the routine with the following instruction. BLOAD\"V15O1C.BIN\",R In BASIC: 5 ' Initializes the sound registers of the PSG 10 FOR R=0 TO 13 20 IF R=7 THEN SOUND R,&B10111111 ELSE SOUND R,0 30 NEXT 40 ' Play the note C on voice 1 with a volume of 12 50 SOUND 0,&hAC ' 8 least significant bits in register 0 60 SOUND 1,1 ' 4 most significant bits in register 1 70 SOUND 8,&b1100 ' Adjusting the volume of voice 1 to 12 80 SOUND 7,&b10111110 ' Enables the sound generator on voice 1 White noise frequency control register This register is used to enable or disable the sound generator as well as the noise generator. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 +-------+-------+-------+-------+-------+-------+-------+-------+ Register 6 | - - - | White noise generator frequency |","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":4,"lastChunk":false},"vector":[-0.06144042685627937,-0.034881725907325745,-0.10176587104797363,-0.05795711651444435,-0.08597470819950104,-0.008607164025306702,0.03365924209356308,0.04148069769144058,-0.064409039914608,0.012598239816725254,0.006717453710734844,-0.03875062242150307,-0.016445372253656387,-0.10818640142679214,-0.040034424513578415,0.025552252307534218,-0.01184370182454586,0.0043631126172840595,-0.036935314536094666,-0.051765527576208115,0.015780655667185783,0.04006413742899895,-0.029020924121141434,-0.0054933964274823666,0.04176979511976242,-0.0016985599650070071,-0.00925565604120493,0.0688062533736229,0.04107476398348808,-0.08051181584596634,0.07257404923439026,0.07988126575946808,0.10547059029340744,0.02858329378068447,0.03748147934675217,0.03747071325778961,0.05107332393527031,-0.06267517805099487,-0.034510545432567596,-0.013477537781000137,-0.06192449852824211,0.042714815586805344,-0.03370175510644913,-0.014353970997035503,-0.054374027997255325,-0.0016456700395792723,-0.12858103215694427,0.07660315185785294,-0.029030224308371544,-0.022764448076486588,0.023456495255231857,0.034905195236206055,-0.012172908522188663,-0.0022479600738734007,-0.0012684828834608197,-0.017415771260857582,0.07205184549093246,0.022093232721090317,0.04729026183485985,0.027620574459433556,-0.10434678941965103,0.03956183046102524,-0.03297920897603035,-0.04517660662531853,0.014383436180651188,-0.016440441831946373,0.009609119035303593,-0.05117044970393181,0.009498556144535542,-0.006973795127123594,-0.150955930352211,0.005255639087408781,-0.02503003366291523,0.06524762511253357,0.003919569775462151,0.01833932287991047,0.024035751819610596,-0.04589812457561493,-0.048851631581783295,-0.10567149519920349,0.019493937492370605,0.006939966231584549,-0.002266652649268508,-0.06409125030040741,-0.009684421122074127,-0.040786515921354294,-0.0112480903044343,0.009164119139313698,0.09574396908283234,0.027171041816473007,-0.05548898130655289,-0.007053723558783531,-0.05024169012904167,-0.006359693128615618,0.0683407112956047,0.019845616072416306,0.040803682059049606,0.026479674503207207,0.031218579038977623,0.0762854814529419,-0.0027655605226755142,-0.05455048754811287,-0.018166299909353256,0.025194676592946053,0.007666331250220537,-0.07560483366250992,0.006663746200501919,0.02986763045191765,-0.04206777364015579,-0.10359477251768112,0.014291562139987946,0.019385140389204025,0.0612918958067894,-0.062385767698287964,0.048602599650621414,0.02236982434988022,-0.009063832461833954,0.002888672985136509,-0.0441613532602787,-0.059588417410850525,0.03937426954507828,0.009785983711481094,0.002470453502610326,0.05778372287750244,-0.040961965918540955,-0.09276600182056427,0.007427498232573271,4.91375813895314e-33,-0.012864290736615658,-0.07274095714092255,-0.05632665753364563,-0.020092742517590523,0.04409625381231308,-0.017677204683423042,-0.01887543499469757,0.07746566087007523,-0.08313322812318802,0.03253501281142235,-0.02400314435362816,-0.029759997501969337,0.03854556381702423,-0.009630009531974792,0.008512548170983791,-0.06889302283525467,0.013630403205752373,0.0678425058722496,-0.05045957863330841,0.01650726981461048,0.09741327911615372,0.05545559898018837,0.007307045627385378,0.040254686027765274,0.08717790246009827,0.10547446459531784,0.013690507039427757,-0.044984761625528336,0.05597877502441406,0.011067133396863937,-0.031492773443460464,-0.02382109872996807,-0.04123268276453018,-0.013213115744292736,0.05742048844695091,-0.018143469467759132,0.0006368227186612785,0.0029272662941366434,0.05633203312754631,-0.028556063771247864,0.014072914607822895,-0.022327864542603493,-0.04397760331630707,-0.0065057361498475075,-0.04095206409692764,-0.0752982646226883,-0.04448079690337181,0.0856708362698555,0.01734461821615696,0.048359863460063934,0.07050340622663498,0.0204254649579525,-0.007631301414221525,0.03478500619530678,0.00981160718947649,-0.056627508252859116,0.001968980301171541,-0.00443957420065999,0.012505783699452877,0.1482313722372055,0.019198155030608177,0.12275721877813339,-0.043060414493083954,-0.02610013820230961,0.04413263127207756,0.011024178937077522,-0.018181288614869118,-0.04931051656603813,0.056309789419174194,-0.02063758485019207,-0.07651276141405106,0.02316536195576191,0.09598729014396667,0.013991565443575382,-0.06486251205205917,0.05112103372812271,-0.007040135562419891,0.006275207735598087,-0.10118775814771652,-0.06552094221115112,-0.025486627593636513,0.10204101353883743,-0.07807716727256775,-0.0774463564157486,-0.05061672255396843,-0.04587684944272041,0.010663260705769062,-0.10171279311180115,-0.10030446201562881,-0.07079006731510162,0.017392141744494438,-0.04630449414253235,0.035460274666547775,0.026383308693766594,-0.04482923448085785,-6.22325737640123e-33,0.00963531993329525,0.04304603859782219,-0.009330231696367264,0.03470596298575401,-0.10563401132822037,0.03926778584718704,0.12935152649879456,-0.13537196815013885,-0.029829226434230804,-0.02823523059487343,-0.022473406046628952,0.045296791940927505,0.05072491243481636,0.007057614624500275,0.0663103461265564,-0.019120248034596443,-0.06785573810338974,0.05878445878624916,-0.011909297667443752,0.11503958702087402,0.01579093560576439,0.11406400054693222,0.03145374357700348,0.002136830473318696,-0.035372838377952576,0.028095198795199394,-0.04609222710132599,0.10442471504211426,0.07397674024105072,-0.010173824615776539,-0.024022338911890984,0.02754005789756775,-0.05290400609374046,-0.048101115971803665,0.035147685557603836,-0.028165526688098907,0.04673074930906296,0.03808987885713577,0.041036512702703476,0.0019081896170973778,0.06683751195669174,0.04970962181687355,-0.019384052604436874,0.029892614111304283,0.024590065702795982,0.04875517636537552,0.016595805063843727,0.04416597634553909,-0.052981968969106674,-0.08947516977787018,0.022259512916207314,-0.019374864175915718,0.06124003976583481,0.03631570190191269,-0.01868356764316559,0.043216556310653687,-0.014244208112359047,-0.0291126798838377,0.07711575925350189,0.015409456565976143,0.028634406626224518,-0.025308167561888695,0.05292927846312523,-0.04347001761198044,0.03782251104712486,0.039836540818214417,-0.017292628064751625,-0.0735795646905899,0.052262600511312485,-0.03666325658559799,-0.004714484792202711,-0.006100616417825222,0.042842041701078415,-0.08086476475000381,-0.021919377148151398,0.01705949567258358,-0.08771801739931107,-0.09578939527273178,-0.07181641459465027,0.04479769989848137,-0.10338684916496277,0.016268931329250336,0.011411158367991447,0.02510782703757286,-0.03890525922179222,-0.005163700319826603,0.0018730254378169775,0.004768489394336939,0.005538903642445803,-0.016113629564642906,-0.03220812976360321,0.08266467601060867,0.1330958604812622,0.005805130582302809,-0.029008397832512856,-5.004846670431107e-8,0.05436742678284645,-0.103744275867939,0.036497361958026886,-0.020070843398571014,0.09892264008522034,-0.03482221066951752,-0.014354866929352283,-0.11234486103057861,-0.03452232852578163,-0.03277134150266647,0.06618905067443848,0.014474445022642612,-0.03850460797548294,-0.017217915505170822,0.008283078670501709,0.011061707511544228,-0.010909133590757847,-0.023287657648324966,-0.04667607322335243,-0.06381361186504364,0.009674986824393272,0.010597220622003078,0.008277527987957,0.021468523889780045,-0.025751294568181038,-0.06353449821472168,0.02775765024125576,0.06156562268733978,0.002320743864402175,-0.0029126578010618687,0.07094814628362656,0.042633283883333206,-0.009858684614300728,0.020383255556225777,0.018309274688363075,0.022073468193411827,-0.0014420603401958942,0.08813175559043884,0.022785436362028122,-0.00718868151307106,-0.04659929499030113,0.020538577809929848,-0.12074104696512222,0.03319405019283295,0.02000238187611103,-0.022275522351264954,-0.037393391132354736,-0.03027096763253212,0.002413469133898616,0.006422189995646477,-0.029319731518626213,0.10313129425048828,-0.012999871745705605,0.03470172733068466,0.016331251710653305,0.002751614199951291,-0.09302275627851486,-0.0463702529668808,0.0254435446113348,0.13041791319847107,-0.09210361540317535,0.07176495343446732,0.02844439446926117,-0.061471737921237946],"norm":0.9999998634479499},{"id":"7a09c367-5e6e-4e9b-a29a-7e0847229f24","metadata":{"id":"msxdocs_audio_psg_registers--5","document":"+-------+-------+-------+-------+-------+-------+-------+-------+ Value indicating the frequency of the white noise generator takes up 5 bits. The value to be written is obtained using the following formula. Only the 5 bits of the value are to be written in register 6. Value = Fi / 16 x Fb Fi = PSG internal frequency (1789772.5 Hz) Fb = Base frequency of the noise to be produced (varies between 3.608 and 111.860 Hz) PSG voice and I/O port control register This register is used to enable or disable the sound generator as well as the noise generator. It is also used to adjust the direction of the PSG I/O ports. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 | PSG I/O Ports | Make the noise mute | Make the tone mute | +-------+-------+-------+-------+-------+-------+-------+-------+ Register 7 | B=1 : A=0 |voice3 :voice2 :voice1 |voice3 :voice2 :voice1 | +-------+-------+-------+-------+-------+-------+-------+-------+ Notes: To make mute the sound on a voice, you can set the volume of the voice to 0 (registers 8 to 10) or deactivate the tone and noise generator of this voice by setting the corresponding bits of register 7 to 1. In order to guarantee the proper functioning of the PSG I/O ports, bit 7 of register 7 must always remain at 1 (port B in output mode) and bit 6 at 0 (port A in input mode). It is therefore possible to enable the sound generator and the noise generator at the same time on each voice. That is to say, mix the two. Amplitude and volume control registers bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0","uri":"msxdocs://audio/psg_registers","title":"PSG Registers","index":5,"lastChunk":false},"vector":[-0.031935252249240875,-0.010669328272342682,-0.08577462285757065,-0.03190023824572563,-0.1197282075881958,-0.01059315912425518,0.06114470586180687,-0.018450850620865822,-0.0017259522574022412,-0.044194817543029785,0.020790887996554375,-0.051792506128549576,0.027448665350675583,-0.12869729101657867,-0.02053298056125641,0.019375013187527657,0.024641208350658417,0.04008064046502113,-0.049378592520952225,-0.055002953857183456,0.06926468014717102,0.039986059069633484,-0.028614824637770653,-0.007725399918854237,0.01772620715200901,-0.05348345264792442,0.02282954752445221,0.043548960238695145,0.110733263194561,-0.07867896556854248,0.03081313706934452,0.08268280327320099,0.08273787796497345,0.02373385988175869,-0.04669458791613579,-0.06286939978599548,0.08864253759384155,-0.03247496858239174,-0.014218664728105068,-0.0018342252587899566,0.0004558174405246973,0.03889511525630951,-0.019561154767870903,-0.07534819841384888,-0.06857573986053467,-0.023421652615070343,-0.12271716445684433,0.02943428047001362,-0.02083616890013218,-0.054808564484119415,0.004438999108970165,0.0028922201599925756,-0.021590061485767365,0.033611129969358444,0.0021949163638055325,-0.022381361573934555,0.08717544376850128,0.039629511535167694,0.013776709325611591,0.041259054094552994,-0.06822966039180756,0.026116207242012024,-0.020495327189564705,-0.045431625097990036,0.021055180579423904,0.04167032614350319,0.028935987502336502,-0.040401801466941833,-0.05115606635808945,0.0009290095767937601,-0.1199143007397651