Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/sonic-pi/tutorial/id/units/?format=api&page=8
https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/units/?format=api&page=9", "previous": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/units/?format=api&page=7", "results": [ { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "For example, say you have the following folder on your machine:" ], "previous_source": "", "target": [ "" ], "id_hash": 8804797878442719130, "content_hash": 8804797878442719130, "location": "03.7-Sample-Packs.md:17", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 389, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://hosted.weblate.org/api/units/14782037/?format=api", "priority": 100, "id": 7042179, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=fa30ed0547b0f79a", "url": "https://hosted.weblate.org/api/units/7042179/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "/path/to/my/samples/" ], "previous_source": "", "target": [ "" ], "id_hash": 8731657652270897236, "content_hash": 8731657652270897236, "location": "03.7-Sample-Packs.md:19", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 390, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14783384/?format=api", "priority": 100, "id": 7042180, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=f92d145f57ed9854", "url": "https://hosted.weblate.org/api/units/7042180/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:18+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "When we look inside that folder we find the following samples:" ], "previous_source": "", "target": [ "" ], "id_hash": -8129984263488774179, "content_hash": -8129984263488774179, "location": "03.7-Sample-Packs.md:23", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 391, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://hosted.weblate.org/api/units/14782038/?format=api", "priority": 100, "id": 7042181, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=0f2c7e63093c5fdd", "url": "https://hosted.weblate.org/api/units/7042181/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`100_A#_melody1.wav`" ], "previous_source": "", "target": [ "`100_A#_melody1.wav`" ], "id_hash": 421073318360627659, "content_hash": 421073318360627659, "location": "03.7-Sample-Packs.md:25, 03.7-Sample-Packs.md:86", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 392, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782039/?format=api", "priority": 100, "id": 7042182, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=85d7f3f3bd47b9cb", "url": "https://hosted.weblate.org/api/units/7042182/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`100_A#_melody2.wav`" ], "previous_source": "", "target": [ "`100_A#_melody2.wav`" ], "id_hash": 8058501718173065968, "content_hash": 8058501718173065968, "location": "03.7-Sample-Packs.md:26, 03.7-Sample-Packs.md:87", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 393, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782040/?format=api", "priority": 100, "id": 7042183, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=efd58c9ded94a2f0", "url": "https://hosted.weblate.org/api/units/7042183/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`100_A#_melody3.wav`" ], "previous_source": "", "target": [ "`100_A#_melody3.wav`" ], "id_hash": 3150627263353381913, "content_hash": 3150627263353381913, "location": "03.7-Sample-Packs.md:27, 03.7-Sample-Packs.md:88", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 394, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782041/?format=api", "priority": 100, "id": 7042184, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=abb946cda3d6e419", "url": "https://hosted.weblate.org/api/units/7042184/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`120_A#_melody4.wav`" ], "previous_source": "", "target": [ "`120_A#_melody4.wav`" ], "id_hash": 2736533444681348350, "content_hash": 2736533444681348350, "location": "03.7-Sample-Packs.md:28, 03.7-Sample-Packs.md:89", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 395, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782042/?format=api", "priority": 100, "id": 7042185, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=a5fa1eab4e3534fe", "url": "https://hosted.weblate.org/api/units/7042185/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`120_Bb_guit1.wav`" ], "previous_source": "", "target": [ "`120_Bb_guit1.wav`" ], "id_hash": -7674563220789202172, "content_hash": -7674563220789202172, "location": "03.7-Sample-Packs.md:29, 03.7-Sample-Packs.md:90", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 396, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782043/?format=api", "priority": 100, "id": 7042186, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=157e79698a94f304", "url": "https://hosted.weblate.org/api/units/7042186/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`120_Bb_piano1.wav`" ], "previous_source": "", "target": [ "`120_Bb_piano1.wav`" ], "id_hash": 5001695825739187135, "content_hash": 5001695825739187135, "location": "03.7-Sample-Packs.md:30, 03.7-Sample-Packs.md:91", "context": "", "note": "", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 397, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782044/?format=api", "priority": 100, "id": 7042187, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=c56997da77bd03bf", "url": "https://hosted.weblate.org/api/units/7042187/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Typically in order to play the piano sample we can use the full path:" ], "previous_source": "", "target": [ "" ], "id_hash": 1147928492396505781, "content_hash": 1147928492396505781, "location": "03.7-Sample-Packs.md:32", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 398, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://hosted.weblate.org/api/units/14782045/?format=api", "priority": 100, "id": 7042188, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=8fee42e1c0d7eab5", "url": "https://hosted.weblate.org/api/units/7042188/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "sample \"/path/to/my/samples/120_Bb_piano1.wav\"" ], "previous_source": "", "target": [ "" ], "id_hash": 6507498747885353364, "content_hash": 6507498747885353364, "location": "03.7-Sample-Packs.md:34", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 399, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://hosted.weblate.org/api/units/14783385/?format=api", "priority": 100, "id": 7042189, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=da4f47a20c017994", "url": "https://hosted.weblate.org/api/units/7042189/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "If we want to then play the guitar sample we can use its full path too:" ], "previous_source": "", "target": [ "" ], "id_hash": 3230945825986228784, "content_hash": 3230945825986228784, "location": "03.7-Sample-Packs.md:38", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 400, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://hosted.weblate.org/api/units/14782046/?format=api", "priority": 100, "id": 7042190, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=acd6a01c4670b230", "url": "https://hosted.weblate.org/api/units/7042190/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:03+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "sample \"/path/to/my/samples/120_Bb_guit.wav\"" ], "previous_source": "", "target": [ "" ], "id_hash": -7009412566558117354, "content_hash": -7009412566558117354, "location": "03.7-Sample-Packs.md:40", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 401, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://hosted.weblate.org/api/units/14783386/?format=api", "priority": 100, "id": 7042191, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=1eb990687e24f216", "url": "https://hosted.weblate.org/api/units/7042191/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "However, both of these calls to sample requires us to *know* the names of the samples within our directory. What if we just want to listen to each sample in turn quickly?" ], "previous_source": "", "target": [ "" ], "id_hash": 3289265431901313254, "content_hash": 3289265431901313254, "location": "03.7-Sample-Packs.md:44", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 402, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://hosted.weblate.org/api/units/14782047/?format=api", "priority": 100, "id": 7042192, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=ada5d17ba87318e6", "url": "https://hosted.weblate.org/api/units/7042192/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Indexing Sample Packs" ], "previous_source": "", "target": [ "" ], "id_hash": -3838515583387802026, "content_hash": -3838515583387802026, "location": "03.7-Sample-Packs.md:48", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 403, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://hosted.weblate.org/api/units/14782964/?format=api", "priority": 100, "id": 7042193, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=4abada6a0b5e6656", "url": "https://hosted.weblate.org/api/units/7042193/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-13T14:48:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "If we want to play the first sample in a directory we just need to pass the directory's name to `sample` and the index `0` as follows:" ], "previous_source": "", "target": [ "" ], "id_hash": -1630361502787955560, "content_hash": -1630361502787955560, "location": "03.7-Sample-Packs.md:50", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 404, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://hosted.weblate.org/api/units/14782048/?format=api", "priority": 100, "id": 7042194, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=695fcad9eada1498", "url": "https://hosted.weblate.org/api/units/7042194/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "sample \"/path/to/my/samples/\", 0" ], "previous_source": "", "target": [ "" ], "id_hash": -9092120927204647235, "content_hash": -9092120927204647235, "location": "03.7-Sample-Packs.md:53", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 405, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://hosted.weblate.org/api/units/14783387/?format=api", "priority": 100, "id": 7042195, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=01d24c3057125ebd", "url": "https://hosted.weblate.org/api/units/7042195/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "We can even make a shortcut to our directory path using a variable:" ], "previous_source": "", "target": [ "" ], "id_hash": -5386809152451232346, "content_hash": -5386809152451232346, "location": "03.7-Sample-Packs.md:57", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 406, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://hosted.weblate.org/api/units/14782049/?format=api", "priority": 100, "id": 7042196, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=353e359dcb523da6", "url": "https://hosted.weblate.org/api/units/7042196/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, 0" ], "previous_source": "", "target": [ "" ], "id_hash": 9126481286902927124, "content_hash": 9126481286902927124, "location": "03.7-Sample-Packs.md:59", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 407, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://hosted.weblate.org/api/units/14783388/?format=api", "priority": 100, "id": 7042197, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=fea7c66053194f14", "url": "https://hosted.weblate.org/api/units/7042197/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Now, if we want to play the second sample in our directory, we just need to add 1 to our index:" ], "previous_source": "", "target": [ "" ], "id_hash": 7062618235669728297, "content_hash": 7062618235669728297, "location": "03.7-Sample-Packs.md:64", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 408, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://hosted.weblate.org/api/units/14782050/?format=api", "priority": 100, "id": 7042198, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=e20375ddb14a4c29", "url": "https://hosted.weblate.org/api/units/7042198/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, 1" ], "previous_source": "", "target": [ "" ], "id_hash": 6746783647531337643, "content_hash": 6746783647531337643, "location": "03.7-Sample-Packs.md:67", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 409, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://hosted.weblate.org/api/units/14783389/?format=api", "priority": 100, "id": 7042199, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=dda163fb3f8507ab", "url": "https://hosted.weblate.org/api/units/7042199/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Notice that we no longer need to know the names of the samples in the directory - we just need to know the directory itself (or have a shortcut to it). If we ask for an index which is larger than the number of samples, it simply wraps round just like Rings. Therefore, whatever number we use we're guaranteed to get one of the samples in that directory." ], "previous_source": "", "target": [ "" ], "id_hash": 3077004791891105519, "content_hash": 3077004791891105519, "location": "03.7-Sample-Packs.md:72", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 410, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 68, "source_unit": "https://hosted.weblate.org/api/units/14782051/?format=api", "priority": 100, "id": 7042200, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=aab3b78e38d816ef", "url": "https://hosted.weblate.org/api/units/7042200/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Filtering Sample Packs" ], "previous_source": "", "target": [ "" ], "id_hash": 9002406110231815668, "content_hash": 9002406110231815668, "location": "03.7-Sample-Packs.md:79", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 411, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://hosted.weblate.org/api/units/14782965/?format=api", "priority": 100, "id": 7042201, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=fceef8a9142c65f4", "url": "https://hosted.weblate.org/api/units/7042201/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-13T14:48:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Usually indexing is enough, but sometimes we need more power to sort and organise our samples. Luckily many sample packs add useful information in the filenames. Let's take another look at the sample file names in our directory:" ], "previous_source": "", "target": [ "" ], "id_hash": -4932727431443889193, "content_hash": -4932727431443889193, "location": "03.7-Sample-Packs.md:81", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 412, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://hosted.weblate.org/api/units/14782052/?format=api", "priority": 100, "id": 7042202, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=3b8b6e892af643d7", "url": "https://hosted.weblate.org/api/units/7042202/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Notice that in these filenames we have quite a bit of information. Firstly, we have the BPM of the sample (beats per minute) at the start. So, the piano sample is at 120 BPM and our first three melodies are at 100 BPM. Also, our sample names contain the key. So the guitar sample is in Bb and the melodies are in A#. This information is very useful for mixing in these samples with our other code. For example, we know we can only play the piano sample with code that's in 120 BPM and in the key of Bb." ], "previous_source": "", "target": [ "" ], "id_hash": -8768130644781333588, "content_hash": -8768130644781333588, "location": "03.7-Sample-Packs.md:93", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 413, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 100, "source_unit": "https://hosted.weblate.org/api/units/14783390/?format=api", "priority": 100, "id": 7042203, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=065157a2559783ac", "url": "https://hosted.weblate.org/api/units/7042203/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:19+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "It turns out that we can use this particular naming convention of our sample sets in the code to help us filter out the ones we want. For example, if we're working at 120 BPM, we can filter down to all the samples that contain the string `\"120\"` with the following:" ], "previous_source": "", "target": [ "" ], "id_hash": 1651906500154477198, "content_hash": 1651906500154477198, "location": "03.7-Sample-Packs.md:102", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 414, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 51, "source_unit": "https://hosted.weblate.org/api/units/14782053/?format=api", "priority": 100, "id": 7042204, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=96ecc035afddca8e", "url": "https://hosted.weblate.org/api/units/7042204/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, \"120\"" ], "previous_source": "", "target": [ "" ], "id_hash": -5636193425040704521, "content_hash": -5636193425040704521, "location": "03.7-Sample-Packs.md:107", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 415, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://hosted.weblate.org/api/units/14783391/?format=api", "priority": 100, "id": 7042205, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=31c837f1170e7bf7", "url": "https://hosted.weblate.org/api/units/7042205/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "This will play us the first match. If we want the second match we just need to use the index:" ], "previous_source": "", "target": [ "" ], "id_hash": 813777697807686357, "content_hash": 813777697807686357, "location": "03.7-Sample-Packs.md:112", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 416, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://hosted.weblate.org/api/units/14782054/?format=api", "priority": 100, "id": 7042206, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=8b4b1e812bf65ad5", "url": "https://hosted.weblate.org/api/units/7042206/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:04+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, \"120\", 1" ], "previous_source": "", "target": [ "" ], "id_hash": -8203790206386458049, "content_hash": -8203790206386458049, "location": "03.7-Sample-Packs.md:115", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 417, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://hosted.weblate.org/api/units/14783392/?format=api", "priority": 100, "id": 7042207, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=0e264845d881b23f", "url": "https://hosted.weblate.org/api/units/7042207/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, \"120\", \"A#\"" ], "previous_source": "", "target": [ "" ], "id_hash": -7833423915432675329, "content_hash": -7833423915432675329, "location": "03.7-Sample-Packs.md:124", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 419, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://hosted.weblate.org/api/units/14783393/?format=api", "priority": 100, "id": 7042209, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=134a1673c195f7ff", "url": "https://hosted.weblate.org/api/units/7042209/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Finally, we're still free to add our usual opts to the call to `sample`:" ], "previous_source": "", "target": [ "" ], "id_hash": 8182836672784327319, "content_hash": 8182836672784327319, "location": "03.7-Sample-Packs.md:129", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 420, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://hosted.weblate.org/api/units/14782056/?format=api", "priority": 100, "id": 7042210, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=f18f469970596297", "url": "https://hosted.weblate.org/api/units/7042210/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsample samps, \"120\", \"Bb\", 1, lpf: 70, amp: 2" ], "previous_source": "", "target": [ "" ], "id_hash": -400680582662973138, "content_hash": -400680582662973138, "location": "03.7-Sample-Packs.md:131", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 421, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://hosted.weblate.org/api/units/14783394/?format=api", "priority": 100, "id": 7042211, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=7a707f2209fa192e", "url": "https://hosted.weblate.org/api/units/7042211/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Sources" ], "previous_source": "", "target": [ "" ], "id_hash": -2422079273871713173, "content_hash": -2422079273871713173, "location": "03.7-Sample-Packs.md:136", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 422, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782966/?format=api", "priority": 100, "id": 7042212, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=5e630bbbaf0a5c6b", "url": "https://hosted.weblate.org/api/units/7042212/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-13T14:48:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "The `sample` fn will first gather all sources and use them to create a large list of candidates. This list is constructed by first adding all valid paths and then by adding all the valid `.flac`, `.aif`, `.aiff`, `.wav`, `.wave` files contained within the directories." ], "previous_source": "", "target": [ "" ], "id_hash": 3649442904749084437, "content_hash": 3649442904749084437, "location": "03.7-Sample-Packs.md:145", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 426, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://hosted.weblate.org/api/units/14782060/?format=api", "priority": 100, "id": 7042216, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=b2a56cfc7da38f15", "url": "https://hosted.weblate.org/api/units/7042216/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "For example, take a look at the following code:" ], "previous_source": "", "target": [ "" ], "id_hash": -3882974242494983145, "content_hash": -3882974242494983145, "location": "03.7-Sample-Packs.md:150", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 427, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://hosted.weblate.org/api/units/14782061/?format=api", "priority": 100, "id": 7042217, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=4a1ce77fd4185417", "url": "https://hosted.weblate.org/api/units/7042217/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/my/samples/\"\nsamps2 = \"/path/to/my/samples2/\"\npath = \"/path/to/my/samples3/foo.wav\"\nsample samps, samps2, path, 0" ], "previous_source": "", "target": [ "" ], "id_hash": -3596595585995376214, "content_hash": -3596595585995376214, "location": "03.7-Sample-Packs.md:152", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 428, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://hosted.weblate.org/api/units/14783395/?format=api", "priority": 100, "id": 7042218, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=4e16535ec001f9aa", "url": "https://hosted.weblate.org/api/units/7042218/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Here, we're combining the contents of the samples within two directories and adding a specific sample. If `\"/path/to/my/samples/\"` contained 3 samples and `\"/path/to/my/samples2/\"` contained 12, we'd have 16 potential samples to index and filter (3 + 12 + 1)." ], "previous_source": "", "target": [ "" ], "id_hash": 5917605904306872381, "content_hash": 5917605904306872381, "location": "03.7-Sample-Packs.md:160", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 429, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://hosted.weblate.org/api/units/14782062/?format=api", "priority": 100, "id": 7042219, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=d21f8f3796f7203d", "url": "https://hosted.weblate.org/api/units/7042219/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "By default, only the sample files within a directory are gathered into the candidate list. Sometimes you might have a number of nested folders of samples you wish to search and filter within. You can therefore do a recursive search for all samples within all subfolders of a particular folder by adding `**` to the end of the path:" ], "previous_source": "", "target": [ "" ], "id_hash": 2673980195530100666, "content_hash": 2673980195530100666, "location": "03.7-Sample-Packs.md:165", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 430, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 59, "source_unit": "https://hosted.weblate.org/api/units/14782063/?format=api", "priority": 100, "id": 7042220, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=a51be2d20b004fba", "url": "https://hosted.weblate.org/api/units/7042220/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "samps = \"/path/to/nested/samples/**\"\nsample samps, 0" ], "previous_source": "", "target": [ "" ], "id_hash": -3045048071436206841, "content_hash": -3045048071436206841, "location": "03.7-Sample-Packs.md:171", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 431, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://hosted.weblate.org/api/units/14783396/?format=api", "priority": 100, "id": 7042221, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=55bdd0e9920e7d07", "url": "https://hosted.weblate.org/api/units/7042221/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:20+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Take care though as searching through a very large set of folders may take a long time. However, the contents of all folder sources are cached, so the delay will only happen the first time." ], "previous_source": "", "target": [ "" ], "id_hash": 5383664705134791202, "content_hash": 5383664705134791202, "location": "03.7-Sample-Packs.md:176", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 432, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://hosted.weblate.org/api/units/14782064/?format=api", "priority": 100, "id": 7042222, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=cab69e86835e0a22", "url": "https://hosted.weblate.org/api/units/7042222/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Finally, note that the sources *must go first*. If no source is given, then the set of built-in samples will be selected as the default list of candidates to work with." ], "previous_source": "", "target": [ "" ], "id_hash": 5886755777847247052, "content_hash": 5886755777847247052, "location": "03.7-Sample-Packs.md:180", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 433, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://hosted.weblate.org/api/units/14782065/?format=api", "priority": 100, "id": 7042223, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=d1b1f530ca1040cc", "url": "https://hosted.weblate.org/api/units/7042223/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Filters" ], "previous_source": "", "target": [ "" ], "id_hash": 7294269816865057479, "content_hash": 7294269816865057479, "location": "03.7-Sample-Packs.md:184, A.19-subtractive-synthesis.md:47", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 434, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://hosted.weblate.org/api/units/14782967/?format=api", "priority": 100, "id": 7042224, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=e53a73c072186ac7", "url": "https://hosted.weblate.org/api/units/7042224/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-13T14:48:05+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "Once you have a list of candidates you may use the following filtering types to further reduce the selection:" ], "previous_source": "", "target": [ "" ], "id_hash": -8094506165296200013, "content_hash": -8094506165296200013, "location": "03.7-Sample-Packs.md:186", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 435, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://hosted.weblate.org/api/units/14782066/?format=api", "priority": 100, "id": 7042225, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=0faa8987794f86b3", "url": "https://hosted.weblate.org/api/units/7042225/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`\"foo\"` Strings will filter on substring occurrence within file name (minus directory path and extension)." ], "previous_source": "", "target": [ "" ], "id_hash": 5852794877720185016, "content_hash": 5852794877720185016, "location": "03.7-Sample-Packs.md:189", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 436, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://hosted.weblate.org/api/units/14782067/?format=api", "priority": 100, "id": 7042226, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=d1394dee8dbcc8b8", "url": "https://hosted.weblate.org/api/units/7042226/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`/fo[oO]/` Regular Expressions will filter on pattern matching of file name (minus directory path and extension)." ], "previous_source": "", "target": [ "" ], "id_hash": -5079000667978019597, "content_hash": -5079000667978019597, "location": "03.7-Sample-Packs.md:190", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 437, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://hosted.weblate.org/api/units/14782068/?format=api", "priority": 100, "id": 7042227, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=3983c3cd5b32ccf3", "url": "https://hosted.weblate.org/api/units/7042227/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`:foo` - Keywords will filter candidates on whether the keyword is a direct match of the filename (minus directory path and extension)." ], "previous_source": "", "target": [ "" ], "id_hash": -2969138177976863070, "content_hash": -2969138177976863070, "location": "03.7-Sample-Packs.md:191", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 438, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://hosted.weblate.org/api/units/14782069/?format=api", "priority": 100, "id": 7042228, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=56cb808eeca376a2", "url": "https://hosted.weblate.org/api/units/7042228/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`lambda{|a| ... }` - Procs with one argument will be treated as a candidate filter or generator function. It will be passed the list of current candidates and must return a new list of candidates (a list of valid paths to sample files)." ], "previous_source": "", "target": [ "" ], "id_hash": 8480120610726762478, "content_hash": 8480120610726762478, "location": "03.7-Sample-Packs.md:192", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 439, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 43, "source_unit": "https://hosted.weblate.org/api/units/14782070/?format=api", "priority": 100, "id": 7042229, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=f5af70c40ed657ee", "url": "https://hosted.weblate.org/api/units/7042229/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "`1` - Numbers will select the candidate with that index (wrapping round like a ring if necessary)." ], "previous_source": "", "target": [ "" ], "id_hash": -3824291146378305309, "content_hash": -3824291146378305309, "location": "03.7-Sample-Packs.md:193", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 440, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://hosted.weblate.org/api/units/14782071/?format=api", "priority": 100, "id": 7042230, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=4aed6376de7320e3", "url": "https://hosted.weblate.org/api/units/7042230/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "For example, we can filter over all the samples in a directory containing the string `\"foo\"` and play the first matching sample at half speed:" ], "previous_source": "", "target": [ "" ], "id_hash": 6424362937605496323, "content_hash": 6424362937605496323, "location": "03.7-Sample-Packs.md:195", "context": "", "note": "", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 441, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://hosted.weblate.org/api/units/14782072/?format=api", "priority": 100, "id": 7042231, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=d927ec0dd4291e03", "url": "https://hosted.weblate.org/api/units/7042231/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-11T08:44:06+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" }, { "translation": "https://hosted.weblate.org/api/translations/sonic-pi/tutorial/id/?format=api", "source": [ "sample \"/path/to/samples\", \"foo\", rate: 0.5" ], "previous_source": "", "target": [ "" ], "id_hash": -8620141909482466407, "content_hash": -8620141909482466407, "location": "03.7-Sample-Packs.md:199", "context": "", "note": "", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 442, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://hosted.weblate.org/api/units/14783397/?format=api", "priority": 100, "id": 7042232, "web_url": "https://hosted.weblate.org/translate/sonic-pi/tutorial/id/?checksum=085f1a9ad3d71399", "url": "https://hosted.weblate.org/api/units/7042232/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2016-05-20T14:21:21+02:00", "last_updated": "2023-05-23T12:28:47.723593+02:00" } ] }{ "count": 2023, "next": "