Concerning building a saw by sine waves you’ve asked for that already in another thread and I’ve posted a code example there.