Share to: share facebook share twitter share wa share telegram print page

Triangle wave

Triangle wave
A bandlimited triangle wave pictured in the time domain and frequency domain.
A bandlimited triangle wave[1] pictured in the time domain (top) and frequency domain (bottom). The fundamental is at 220 Hz (A3).
General information
General definition
Fields of applicationElectronics, synthesizers
Domain, codomain and image
Domain
Codomain
Basic features
ParityOdd
Period1
Specific features
Root
DerivativeSquare wave
Fourier series

A triangular wave or triangle wave is a non-sinusoidal waveform named for its triangular shape. It is a periodic, piecewise linear, continuous real function.

Like a square wave, the triangle wave contains only odd harmonics. However, the higher harmonics roll off much faster than in a square wave (proportional to the inverse square of the harmonic number as opposed to just the inverse).

Definitions

Sine, square, triangle, and sawtooth waveforms

Definition

A triangle wave of period p that spans the range [0, 1] is defined as

where is the floor function. This can be seen to be the absolute value of a shifted sawtooth wave.

For a triangle wave spanning the range [−1, 1] the expression becomes

Triangle wave with amplitude = 5, period = 4

A more general equation for a triangle wave with amplitude and period using the modulo operation and absolute value is

For example, for a triangle wave with amplitude 5 and period 4:

A phase shift can be obtained by altering the value of the term, and the vertical offset can be adjusted by altering the value of the term.

As this only uses the modulo operation and absolute value, it can be used to simply implement a triangle wave on hardware electronics.

Note that in many programming languages, the % operator is a remainder operator (with result the same sign as the dividend), not a modulo operator; the modulo operation can be obtained by using ((x % p) + p) % p in place of x % p. In e.g. JavaScript, this results in an equation of the form 4*a/p * Math.abs((((x - p/4) % p) + p) % p - p/2) - a.

Relation to the square wave

The triangle wave can also be expressed as the integral of the square wave:

Expression in trigonometric functions

A triangle wave with period p and amplitude a can be expressed in terms of sine and arcsine (whose value ranges from −π/2 to π/2):

The identity can be used to convert from a triangle "sine" wave to a triangular "cosine" wave. This phase-shifted triangle wave can also be expressed with cosine and arccosine:

Expressed as alternating linear functions

Another definition of the triangle wave, with range from −1 to 1 and period p, is

Harmonics

Animation of the additive synthesis of a triangle wave with an increasing number of harmonics. See Fourier Analysis for a mathematical description.

It is possible to approximate a triangle wave with additive synthesis by summing odd harmonics of the fundamental while multiplying every other odd harmonic by −1 (or, equivalently, changing its phase by π) and multiplying the amplitude of the harmonics by one over the square of their mode number, n (which is equivalent to one over the square of their relative frequency to the fundamental).

The above can be summarised mathematically as follows:

where N is the number of harmonics to include in the approximation, t is the independent variable (e.g. time for sound waves), is the fundamental frequency, and i is the harmonic label which is related to its mode number by .

This infinite Fourier series converges quickly to the triangle wave as N tends to infinity, as shown in the animation.

Arc length

The arc length per period for a triangle wave, denoted by s, is given in terms of the amplitude a and period length p by

See also

References

  1. ^ Kraft, Sebastian; Zölzer, Udo (5 September 2017). "LP-BLIT: Bandlimited Impulse Train Synthesis of Lowpass-filtered Waveforms". Proceedings of the 20th International Conference on Digital Audio Effects (DAFx-17). 20th International Conference on Digital Audio Effects (DAFx-17). Edinburgh. pp. 255–259.

Read more information:

This is a list of postal codes in Canada where the first letter is N. Postal codes beginning with N are located within the Canadian province of Ontario. Only the first three characters are listed, corresponding to the Forward Sortation Area (FSA). Canada Post provides a free postal code look-up tool on its website,[1] via its mobile apps for such smartphones as the iPhone and BlackBerry,[2] and sells hard-copy directories and CD-ROMs. Many vendors also sell validation tools, whic…

Minotaur V adalah sistem peluncuran expendable (sekali pakai) Amerika berasal dari Minotaur IV, sendiri merupakan turunan dari LGM-118 Peacekeeper ICBM. Ini dikembangkan oleh Orbital Sciences Corporation, dan melakukan penerbangan perdananya pada tanggal 7 September 2013 membawa pesawat ruang angkasa LADEE untuk NASA.[1] Referensi ^ Lunar Atmosphere and Dust Environment Explorer (LADEE) Mission website. NASA.  Artikel bertopik astronomi ini adalah sebuah rintisan. Anda dapat membant…

For West Sussex, see List of windmills in West Sussex. 123456789101112131415161718192021class=notpageimage| Extant and former windmills in East Sussex.1 Alfriston, 2 Battle, 3 Cross in Hand, 4 Crowborough, 5 Glynde, 6 Herstmonceux, 7 Icklesham, 8 Kingston, 9 Mark Cross, 10 Mayfield, 11 North Chailey, 12 Nutley, 13 Patcham, 14 Polegate, 15 Punnetts Town, 16 Rottingdean, 17 Rye, 18 Stone Cross, 19 West Blatchington, 20 Westham 21 Winchelsea A list of all windmills and windmill sites whic…

CountryOrigini stilisticheFolkBluesGospel Origini culturaliStati Uniti del sud, anni 1900 Strumenti tipiciVoceSteel guitarBanjoViolinoChitarra folkPianoforteArmonica a boccaBatteriaContrabbasso o Bassomandolino PopolaritàMolto popolare negli Stati Uniti dagli anni venti fino agli Anni 1970, popolarità costante e moderata dagli Anni 2000 in poi negli Stati Uniti d'America. SottogeneriTraditional Country - Western - Americana - Cowboy - Rodeo - Outlaw country - Close Harmony - Honky Tonk - Blueg…

Artikel ini sudah memiliki referensi, tetapi tidak disertai kutipan yang cukup. Anda dapat membantu mengembangkan artikel ini dengan menambahkan lebih banyak kutipan pada teks artikel. (November 2015) (Pelajari cara dan kapan saatnya untuk menghapus pesan templat ini) Jendela gerai Chancery Lane milik Ede & Ravenscroft yang menghadap ke Star Yard, dekat Royal Courts of Justice (tampak pakaian pengadilan dipamerkan di depan toko) Ede & Ravenscroft adalah penjahit tertua di London, karena …

Public research university in Singapore National University of SingaporeUniversiti Nasional Singapura (Malay)新加坡国立大学 (Chinese)சிங்கப்பூர் தேசிய பல்கலைக்கழகம் (Tamil)Coat of armsFormer namesStraits Settlements and Federated Malay States Government Medical School (1905–1921)King Edward VII College of Medicine (1921–1949)University of Malaya, Singapore campus (1949–1962)University of Singapore (1962–1980)…

Atap surya (Bahasa Inggris : Sunroof) adalah panel bergerak terbuka yang berguna untuk membuka jendela di atap mobil, memungkinkan cahaya dan udara segar masuk ke kompartemen penumpang. Atap surya dapat dioperasikan secara manual atau digerakkan oleh motor, dan tersedia dalam berbagai bentuk, ukuran, dan gaya. Sementara istilah atap surya sekarang digunakan secara umum untuk mendeskripsikan panel kaca apa pun di atap, istilah atap candra secara historis digunakan untuk mendeskripsikan panel…

This article is about the destinations of the Dutch airline. For the destinations of its French counterpart, see List of Transavia France destinations. This is a list of scheduled year-round and seasonal destinations served by Dutch low-cost airline Transavia (formerly transavia.com) as of December 2020:[1] List Countries in which Transavia operates as of October 2023[2][3][4] Transavia Boeing 737-800 This section needs additional citations for verification. Pleas…

PT Bosowa CorporindoNama dagangBosowa CorpIndustriKonglomeratDidirikan22 Februari 1973PendiriAksa MahmudKantorpusatJakarta:Jl. H.R. Rasuna Said Kav. 1-2, Kuningan, Setiabudi, Jakarta Selatan, IndonesiaMakassar:Jl. Ahmad Yani, Pisang Utara, Ujung Pandang, Makassar, IndonesiaWilayah operasiNasionalProdukOtomotif, semen, logistik, pertambangan, properti, jasa keuangan, infrastruktur, energi, media, dan lainnyaSitus webwww.bosowa.co.id Bosowa Corp adalah perusahaan induk (holding company) yang memil…

Sam Weideman is one of just 40 AFL players to score two goals with his first two kicks. In Australian rules football, a player can score a goal by kicking the oval ball between the two central goal posts. 298 players are recognised to have scored a goal with their first kick in the sport's premier competition, the Australian Football League (AFL), known before 1990 as the Victorian Football League (VFL). These players are often said to have joined an elite and exclusive club.[1][2 …

Bisati Sungai SariakNagariNegara IndonesiaProvinsiSumatera BaratKabupatenPadang PariamanKecamatanVII Koto Sungai SarikKode Kemendagri13.05.05.2007 Bisati Sungai Sariak adalah Desa/Nagari pemekaran dari Nagari Sungai Sariak pada tahun 2016, Nagari Bisati Sungai Sariak ini terletak di kecamatan VII Koto kabupaten Padang Pariaman, Sumatera Barat.Nagari ini terbentang di sepanjang jalan Sicincin-Pariaman memiliki luas 481 Ha. Nagari ini dipimpin oleh Firdaus, yang terpilih melalui Pilwana (Pemi…

Sekolah Staf dan KomandoAngkatan UdaraLambang SeskoauDibentuk1 Agustus 1963Negara IndonesiaCabang TNI Angkatan UdaraTipe unitKomando PendidikanBagian dariSesko TNIMarkasLembang, Bandung Barat, Jawa BaratMotoPragnya Paramartha JayaSitus websesko.tni-au.mil.idTokohKomandanMarsekal Muda TNI Minggit Tribowo, S.IP.Wakil KomandanMarsekal Pertama TNI Tahyodi, S.A.P.Kepala Koordinator DosenMarsekal Pertama TNI Eduard Sri Wisnu Murendro, S.E. Sekolah Staf dan Komando Angkatan Udara (Seskoau) adalah …

Part of a series on theHistory of CanadaBenjamin West's The Death of General Wolfe Timeline (list) Pre-colonization 1534–1763 1764–1867 1867–1914 1914–1945 1945–1960 1960–1981 1982–present Historically significant Events Sites People Topics Agricultural Cultural Constitutional Economic Former colonies Immigration Indigenous Medicine Military Monarchical Population Sports Religion Territorial evolution Women By provinces and territories Alberta British Columbia Manitoba New Brunswic…

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目需要补充更多来源。 (2018年3月17日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:羅生門 (電影) — 网页、新闻、书籍、学术、图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。 此…

Untuk sinetron yang bernama sama, lihat Malin Kundang (sinetron). Malin KundangSebuah prangko dengan ilustrasi legenda Malin Kundang, tahun 1998.Dongeng rakyatNamaMalin KundangDataMitologiMinangkabauNegaraIndonesiaKawasanSumatera Barat Malin Kundang adalah cerita rakyat yang berasal dari provinsi Sumatera Barat, Indonesia. Legenda Malin Kundang berkisah tentang seorang anak yang durhaka pada ibunya dan karena itu dikutuk menjadi batu. Cerita rakyat yang mirip juga dapat ditemukan di negara-negar…

Swedish histologist (1842–1919) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Gustaf Retzius – news · newspapers · books · scholar · JSTOR (November 2017) (Learn how and when to remove this template message) Gustaf RetziusGustaf RetziusBorn17 October 1842[1]Stockholm[1]Died21 July 1919(1919-…

Operasi Panzerfaust, yang dikenal dengan sebutan Unternehmen Panzerfaust di Jerman, adalah sebuah operasi untuk menjaga Kerajaan Hungaria di sisi Jerman pada masa perang, yang dilakukan pada Oktober 1944 oleh militer Jerman (Wehrmacht). Ketika diktator Jerman Adolf Hitler mendapatkan pesan bahwa Bupati Hungaria, Laksamana Miklós Horthy, secara rahasia menegosiasikan penyerahan negaranya untuk memajukan Tentara Merah, ia mengirim pemimpin komando Waffen-SS Letnan-Kolonel Otto Skorzeny dan mantan…

Contoh simbol Jiahu yang ditemukan di tempurung kura-kura dari tahun 6000 SM.[1] Proto-tulisan adalah simbol yang menyampaikan informasi yang terbatas.[2] Proto-tulisan muncul paling awal pada masa Neolitikum awal pada milenium ke-7 SM. Proto-tulisan menggunakan simbol ideogram atau mnemonik awal untuk melambangkan konsep yang terbatas, dan ini tidak sama dengan sistem penulisan yang sesungguhnya yang menyampaikan bahasa si penulis.[3] Contoh Pada tahun 2003, ditemukan te…

العلاقات النيجرية الهايتية النيجر هايتي   النيجر   هايتي تعديل مصدري - تعديل   العلاقات النيجرية الهايتية هي العلاقات الثنائية التي تجمع بين النيجر وهايتي.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المقارنة النيجر ها…

Front Nasional Islam Bersatu untuk Keselamatan AfghanistanBendera dikibarkan oleh Front Islam BersatuPemimpinBurhanuddin Rabbani (pemimpin figur)Abdul Ali Mazari Sayed Hussain AnwariAsif MohseniAbdullah AbdullahAhmad Shah MassoudHaji Abdul QadeerMuhammad MohaqiqKarim KhaliliWaktu operasiSeptember 1996 – Desember 2001 16 Agustus 2021 – sekarang (sebagai Perlawanan Kedua)MarkasTaloqan, Afganistan (sampai September 2000)[1]Fayzabad, Afgaanistan (2000-November 2001)[2]Bazara…

Kembali kehalaman sebelumnya