[Stk] STK running on Gumstix

David Michael david.michael at gmail.com
Mon, 19 Nov 2007 17:19:14 -0500


--Apple-Mail-4-307706339
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed


Hello

I just wanted to drop a quick note to the STK list reporting success  
with the cross-compilation of the STK to the Gumstix Linux platform.  
I am using ALSA as the audio API. The process of getting ALSA  
compiled correctly for the Gumstix was painful, but ultimately I was  
able to get both RtAudio and RtWvOut working. I have made a couple of  
posts on this to http://blog.unnature.net and will write up a summary  
of the entire experience shortly.

Running the crtsine.cpp example at 44KHz ate up a whopping 18% CPU.  
Perhaps there is some optimization that could be done, but ultimately  
I think this performance is due to the lack of onboard FPU. Gumstix  
uses the XScale ARM chips that all explicitly lack FPUs. All floating  
point operations are done in software which makes it significantly  
slower than expected. When Gumstix updates their chipset to ARM  
processors with FPUs then it might be a viable platform for audio  
synthesis. For reference, iPhones are using ARM chips with an FPU.

Here are some collected links regarding this:
http://gumstix.com
http://en.wikipedia.org/wiki/Xscale
http://www.engadget.com/2007/07/01/iphone-processor-found-620mhz-arm/
http://lists.digium.com/pipermail/asterisk-dev/2004-November/007580.html
http://www.arm.com/support/faqdev/9302.html

Best
David

On Nov 19, 2007, at 4:58 PM, Gary Scavone wrote:

> Hi Malik,
>
> That is a definition that could be used when parsing/writing SKINI  
> messages if you so choose.  I assume Perry added it to be someone  
> compatible with the "Stop Song" MIDI system message.  I don't know  
> of any current STK examples that make use of that message.
>
> Regards,
>
> --gary
>
> On 19-Nov-07, at 1:23 PM, malik martin wrote:
>
>> so no one has any helpful ideas?
>>
>> _______________________________________________
>> Stk mailing list
>> Stk@ccrma.stanford.edu
>> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk


--Apple-Mail-4-307706339
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">
 <div><br =
class=3D"webkit-block-placeholder"></div><div>Hello</div><div><br =
class=3D"webkit-block-placeholder"></div><div>I just wanted to drop a =
quick note to the STK list reporting success with the cross-compilation =
of the STK to the Gumstix Linux platform. I am using ALSA as the audio =
API.=A0The process of getting ALSA compiled correctly for the Gumstix =
was painful, but ultimately I was able to get both RtAudio and RtWvOut =
working. I have made a couple of posts on this to <a =
href=3D"http://blog.unnature.net">http://blog.unnature.net</a> and will =
write up a summary of the entire experience shortly.</div><div><br =
class=3D"webkit-block-placeholder"></div><div>Running the crtsine.cpp =
example at 44KHz ate up a whopping 18% CPU. Perhaps there is some =
optimization that could be done, but ultimately I think this performance =
is due to the lack of onboard FPU.=A0Gumstix uses the XScale ARM chips =
that all explicitly lack FPUs. All floating point operations are done in =
software which makes it=A0significantly=A0slower than expected. When =
Gumstix updates their chipset to ARM processors with FPUs then it might =
be a viable platform for audio synthesis. For reference, iPhones are =
using ARM chips with an FPU.</div><div><br =
class=3D"webkit-block-placeholder"></div><div>Here are some collected =
links regarding this:</div><div><a =
href=3D"http://gumstix.com">http://gumstix.com</a></div><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica"><a =
href=3D"http://en.wikipedia.org/wiki/Xscale">http://en.wikipedia.org/wiki/=
Xscale</a></font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"http://www.engadget.com/2007/07/01/iphone-processor-found-620mhz-a=
rm/">http://www.engadget.com/2007/07/01/iphone-processor-found-620mhz-arm/=
</a></font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"http://lists.digium.com/pipermail/asterisk-dev/2004-November/00758=
0.html">http://lists.digium.com/pipermail/asterisk-dev/2004-November/00758=
0.html</a></font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><a =
href=3D"http://www.arm.com/support/faqdev/9302.html">http://www.arm.com/su=
pport/faqdev/9302.html</a></div></div></div></div><div><br =
class=3D"webkit-block-placeholder"></div><div>Best</div><div>David</div><b=
r><div><div>On Nov 19, 2007, at 4:58 PM, Gary Scavone wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Hi Malik,</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><br></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">That is a definition that could =
be used when parsing/writing SKINI messages if you so choose.<span =
class=3D"Apple-converted-space">=A0 </span>I assume Perry added it to be =
someone compatible with the "Stop Song" MIDI system message.<span =
class=3D"Apple-converted-space">=A0 </span>I don't know of any current =
STK examples that make use of that message.</div><div style=3D"margin-top:=
 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><br></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">Regards,</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">--gary</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><br></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">On 19-Nov-07, at 1:23 PM, malik =
martin wrote:</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> =
<blockquote type=3D"cite"><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">so no one has any helpful =
ideas?</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; =
">_______________________________________________</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Stk mailing list</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a =
href=3D"mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a></div><di=
v style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><a =
href=3D"http://ccrma-mail.stanford.edu/mailman/listinfo/stk">http://ccrma-=
mail.stanford.edu/mailman/listinfo/stk</a></div> </blockquote><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><br></div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">_______________________________________________</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Stk mailing list</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a =
href=3D"mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a></div><di=
v style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><a =
href=3D"http://ccrma-mail.stanford.edu/mailman/listinfo/stk">http://ccrma-=
mail.stanford.edu/mailman/listinfo/stk</a></div> =
</blockquote></div><br></body></html>=

--Apple-Mail-4-307706339--