<div dir="ltr"><div>Key changes happen if solfege is moveable, i.e. <font face="monospace">moveableDo </font><font face="arial, sans-serif">returns </font><font face="monospace">true</font><font face="arial, sans-serif">. From </font><font face="monospace">logo.js</font><font face="arial, sans-serif">, I got references to </font><font face="monospace">getNote()</font><font face="arial, sans-serif"> function in </font><font face="monospace">utils/musicutils.js.</font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">I think you should be looking for the (three) </font><font face="monospace">"if (moveable)" blocks </font><font face="arial, sans-serif">inside </font><font face="monospace">getNote()</font><font face="arial, sans-serif"> in </font><font face="monospace">musicutils.js</font><font face="arial, sans-serif">.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Also, the first of the said </font><font face="monospace">if</font><font face="arial, sans-serif"> blocks references </font><font face="monospace">getScaleAndHalfSteps(keySignature)</font><font face="arial, sans-serif">, which is present in the same file.</font></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="2" color="#666666"><i><span style="font-family:"arial narrow",sans-serif">Anindya Kundu</span></i></font></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="2"><span style="font-family:"arial narrow",sans-serif"></span></font></blockquote></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 May 2020 at 13:23, Aviral Gangwar <<a href="mailto:aviralgangwar24@gmail.com">aviralgangwar24@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello <div>Could you please guide me to the relevant files which handle a key change? <div>E.g >From C Major to G Major. Where do we do the calculations regarding this shift?</div><div><br></div></div><div>I guess one place to look would be _playPitch() inside PitchBlock.js.</div><div><br></div><div>Thank You</div></div>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div>