{"_id":"@donkeyclip/motorcortex-sounddrag","_rev":"2-cb492ea10028b4be251fba6ca2d3a193","name":"@donkeyclip/motorcortex-sounddrag","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@donkeyclip/motorcortex-sounddrag","version":"1.0.0","description":"The motorcortex-sounddrag is a plugin that allows the user to easily add music or sound-effects to your clips","main":"dist/motorcortex-sounddrag.cjs.js","module":"dist/motorcortex-sounddrag.esm.js","browser":"dist/motorcortex-sounddrag.umd.js","author":{"name":"Donkeyclip","email":"opensource@donkeyclip.com","url":"donkeyclip.com"},"repository":{"type":"git","url":"git+https://github.com/donkeyclip/motorcortex-sounddrag.git"},"license":"MIT","engines":{"node":">=10"},"scripts":{"concurrently":"concurrently -c \"cyan.bold,magenta.bold\" --names \"JS,Styles\"","lint:styles":"stylelint  --allow-empty-input \"src/**.css\" \"src/**/*.scss\" --config .stylelintrc.json","lint:js":"eslint -c .eslintrc src/**/*.js","lint":"npm run concurrently \"npm:lint:js\" \"npm:lint:styles\"","lint:fix":"npm run concurrently  \"npm:lint:js -- --fix\" \"npm:lint:styles -- --fix\"","build":"npm run build:lib && npm run build:demo","build:lib":"rollup -c","start":"npm run build:lib && concurrently -c \"cyan.bold,magenta.bold\" \"npm:build:lib -- -w\"  \"npm:start:demo\" ","start:demo":"webpack serve --mode=development --config ./demo/webpack.config.js","build:demo":"webpack --mode=production --config ./demo/webpack.config.js","test":"HERE GOES YOUR TEST TASK","test:prod":"npm run lint","prepare":"husky install"},"keywords":["motorcortex"],"lint-staged":{"*.{json,md,yml,yaml}":["prettier --write"],"*.css":["prettier --write","stylelint  \"src/**.css\" --config .stylelintrc.json --fix"],"*.{js,jsx}":["prettier --write","eslint --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"peerDependencies":{"@donkeyclip/motorcortex":"^7"},"devDependencies":{"@babel/cli":"7.17.0","@babel/core":"7.17.0","@babel/eslint-parser":"7.17.0","@babel/plugin-syntax-jsx":"7.16.7","@babel/plugin-transform-react-jsx":"7.16.7","@babel/preset-env":"7.16.11","@donkeyclip/motorcortex":"7.8.0","@donkeyclip/motorcortex-player":"2.5.0","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"21.0.1","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.1.3","@size-limit/preset-big-lib":"6.0.4","babel-loader":"8.2.3","concurrently":"7.0.0","core-js":"3.21.0","css-loader":"6.6.0","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-config-standard":"16.0.3","eslint-plugin-babel":"5.3.1","eslint-plugin-import":"2.25.4","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-promise":"5.2.0","husky":"7.0.4","prettier":"2.5.1","rimraf":"3.0.2","rollup":"2.67.0","rollup-plugin-terser":"7.0.2","size-limit":"6.0.4","webpack":"5.68.0","webpack-cli":"4.9.2","webpack-dev-server":"4.7.4"},"gitHead":"440e356c32dc2d4ece1bbbaf9657a2341f126b5b","bugs":{"url":"https://github.com/donkeyclip/motorcortex-sounddrag/issues"},"homepage":"https://github.com/donkeyclip/motorcortex-sounddrag#readme","_id":"@donkeyclip/motorcortex-sounddrag@1.0.0","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-9gBX1uZUyQmcZ/qhAIgOfI0xJI0K7dWkpeXgLueLPaWaXER+7Qnnxo+53lXkRO/gYXq2Dxm9HMBuaLPEfsf77w==","shasum":"e85a8d2cf64ab091273f00237aaebf00c50b9723","tarball":"https://registry.npmjs.org/@donkeyclip/motorcortex-sounddrag/-/motorcortex-sounddrag-1.0.0.tgz","fileCount":28,"unpackedSize":175628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/9sFCRA9TVsSAnZWagAA3nwP/01AHY0W2aoWsTlbUA+f\nHScxAJBw5tVnDjwLZVHov89nvaWZK6pNYcFXV6AqEYkXpvKWh9SDG2yXU/yy\nG9Kvqrd+bJ9PIYxKEp+JKYtLixVFF9Htqc1DnAH/dv8jlKoq8ozEFSkIT5Ad\nWOQXUKQ0Iv/bFYYtEW6y3GaYz325wUMACsnSRS5NgL4kjV8Rb5baj0V7aVxY\ndS7TnjEkMMAHEf06MTjp6+v1AkBer2zB+R9qov40c2rpoS4pQGHJ6+Ewp1dk\nOnqcNx+FH2PvXkAcY9PvqrnvVHtBAqhqmFybsfWLt0Ihsr7Fu/Dv/97He718\n2vTLUrsdX27UK0hCJu3OJvFO8RSijEQDlM8o391EvDr+d0Rqc5JzvuAJFTqm\n/sjYmgdzaAYNd9tXOwkwfTj+/b0BuSoOCG5cZda/rldD2koZVqRzeM4kJBZL\n+gR8E+ZjbPo+PCCbufv9kgzfN3E/jtUouu0J7ZWfupUVhU5VU0xVaeXbGATk\nxX52CRoGEIZC6reip15J9L16dN+6axEjwH02yxlFCPFyeIDzcU9dB94E/ZDY\nS/qKnFAqpJIh1XWS7fun4NJEgEUuQGAAh8KHfN3E00CLdPL1gV2PK2C+gMoE\n90v6657QMMtcrDcNM5dH7Qo1/P5YrvUlgSe6QNqhUzhWfCdI53MCshHVKpCX\n6j9Q\r\n=LNs/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0bFTRiKWjLoFmZx3hQfraGcluC5Hb+V6pFS3YsyGFkAiEA3uTeBDTcs+eSoMmViHphwELGUCUYWjexy1Ja00ZPE9M="}]},"_npmUser":{"name":"alexdor","email":"aldor94@gmail.com"},"directories":{},"maintainers":[{"name":"atrantidis","email":"atrantidis@gmail.com"},{"name":"alexdor","email":"aldor94@gmail.com"},{"name":"prieston","email":"priestont@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/motorcortex-sounddrag_1.0.0_1644157701776_0.32428798177762186"},"_hasShrinkwrap":false},"1.1.0":{"name":"@donkeyclip/motorcortex-sounddrag","version":"1.1.0","description":"The motorcortex-sounddrag is a plugin that allows the user to easily add music or sound-effects to your clips","main":"dist/motorcortex-sounddrag.cjs.js","module":"dist/motorcortex-sounddrag.esm.js","browser":"dist/motorcortex-sounddrag.umd.js","author":{"name":"Donkeyclip","email":"opensource@donkeyclip.com","url":"donkeyclip.com"},"repository":{"type":"git","url":"git+https://github.com/donkeyclip/motorcortex-sounddrag.git"},"license":"MIT","engines":{"node":">=10"},"scripts":{"concurrently":"concurrently -c \"cyan.bold,magenta.bold\" --names \"JS,Styles\"","lint:styles":"stylelint  --allow-empty-input \"src/**.css\" \"src/**/*.scss\" --config .stylelintrc.json","lint:js":"eslint -c .eslintrc src/**/*.js","lint":"npm run concurrently \"npm:lint:js\" \"npm:lint:styles\"","lint:fix":"npm run concurrently  \"npm:lint:js -- --fix\" \"npm:lint:styles -- --fix\"","build":"npm run build:lib && npm run build:demo","build:lib":"rollup -c","start":"npm run build:lib && concurrently -c \"cyan.bold,magenta.bold\" \"npm:build:lib -- -w\"  \"npm:start:demo\" ","start:demo":"webpack serve --mode=development --config ./demo/webpack.config.js","build:demo":"webpack --mode=production --config ./demo/webpack.config.js","test":"HERE GOES YOUR TEST TASK","test:prod":"npm run lint","prepare":"husky install"},"keywords":["motorcortex"],"lint-staged":{"*.{json,md,yml,yaml}":["prettier --write"],"*.css":["prettier --write","stylelint  \"src/**.css\" --config .stylelintrc.json --fix"],"*.{js,jsx}":["prettier --write","eslint --fix"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"peerDependencies":{"@donkeyclip/motorcortex":">= 7 < 10"},"devDependencies":{"@babel/cli":"7.17.6","@babel/core":"7.17.9","@babel/eslint-parser":"7.17.0","@babel/plugin-syntax-jsx":"7.16.7","@babel/plugin-transform-react-jsx":"7.17.3","@babel/preset-env":"7.16.11","@donkeyclip/motorcortex":"7.9.3","@donkeyclip/motorcortex-player":"2.7.0","@rollup/plugin-babel":"5.3.1","@rollup/plugin-commonjs":"21.0.3","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.1.3","@size-limit/preset-big-lib":"6.0.4","babel-loader":"8.2.4","concurrently":"7.1.0","core-js":"3.21.1","css-loader":"6.7.1","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-config-standard":"16.0.3","eslint-plugin-babel":"5.3.1","eslint-plugin-import":"2.26.0","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-promise":"5.2.0","husky":"7.0.4","prettier":"2.6.2","rimraf":"3.0.2","rollup":"2.70.1","rollup-plugin-terser":"7.0.2","size-limit":"6.0.4","webpack":"5.72.0","webpack-cli":"4.9.2","webpack-dev-server":"4.8.1"},"gitHead":"bfbf855657ee7fa8a8da06afa39a3fe2949ef111","bugs":{"url":"https://github.com/donkeyclip/motorcortex-sounddrag/issues"},"homepage":"https://github.com/donkeyclip/motorcortex-sounddrag#readme","_id":"@donkeyclip/motorcortex-sounddrag@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-4udRrXGxu/FkSYa/uTXedenlRzjoNYl+6VngR6608A3buFWUgfekdwcXAmZ2AffzLWMXdwymr9TEB1LcDBbHew==","shasum":"b61356ee2107a886c5772499e0d4022ecfdaab3c","tarball":"https://registry.npmjs.org/@donkeyclip/motorcortex-sounddrag/-/motorcortex-sounddrag-1.1.0.tgz","fileCount":28,"unpackedSize":35959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBrTh07f0ieV4u6dyyMVNwQ3tG7JHAo+JkcbCjV8DwlFAiEA6i7z3X8rmgmEWJU4DDJDElWO75apduaJZS/ZSmQD1tM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUYODACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoiyw//Yktq6rtB89xuPbbx3pJfhajGANgpUz/NSWwL3K9CL3/3E4bH\r\n+8Y43xp/x7G1f222JDKa62LZN5rW1RA9wBJ029U9TH/krNd7VE2gjp/IUG/y\r\nD4TKDbMVLcg6d5tbXm3EsClZ4Nzty2PDptdLJLNdSGxbIeFDmDIuhDxeiwm7\r\nqf1PeluGACUCALdKGL4Adye/ZUe8j2NmEJVypOXtOKzmeigyeEEVnV+ktgsA\r\nu/F7JaxoKbmYloQD5URCU9xHCArHGUEYndcdOJHGvl1EtH6ar1qUxvbpmgf3\r\nwCOJxnkVl9Adtac5Qj+/a1HDHlrV8GzPVkeCMUZj9EQCzO5rwo99S26/cW5G\r\nQ7pevrhLv7jBQSihCuZFet3+FPDg8TlIYdij8uN6j79vfn0zwjJ0/5d9VYg2\r\nk5pUuXaN5LAqZP1PLs321qJlQuMwoGleVSstQs/iUPAU4Os+zCDJP+EZhhT8\r\nmcZF6oUhZhuWWmQUnthHk0nAG/jjCJ5ByGC5+KmILB4C3Je+FLyhR3jShOG5\r\nf3H+fTqX46eeLQeG6Ir3j+uXOC3n5mbz6H5aC7KpBczk/ahqIBfMA4UkekPL\r\n1FcqClqrwM4r3DspcQmw2PG9fxCP+U/38O93UIZ1EvYfNJtHr0lqVZTZD4QC\r\naBh+DZT8RsOu62Q2gWeJJyqvi4Aq5zUEdXE=\r\n=pIjl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexdor","email":"aldor94@gmail.com"},"directories":{},"maintainers":[{"name":"atrantidis","email":"atrantidis@gmail.com"},{"name":"alexdor","email":"aldor94@gmail.com"},{"name":"prieston","email":"priestont@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/motorcortex-sounddrag_1.1.0_1649509251262_0.9103801022284654"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-06T14:28:21.724Z","1.0.0":"2022-02-06T14:28:21.944Z","modified":"2022-04-09T13:00:51.522Z","1.1.0":"2022-04-09T13:00:51.418Z"},"maintainers":[{"name":"atrantidis","email":"atrantidis@gmail.com"},{"name":"alexdor","email":"aldor94@gmail.com"},{"name":"prieston","email":"priestont@gmail.com"}],"description":"The motorcortex-sounddrag is a plugin that allows the user to easily add music or sound-effects to your clips","homepage":"https://github.com/donkeyclip/motorcortex-sounddrag#readme","keywords":["motorcortex"],"repository":{"type":"git","url":"git+https://github.com/donkeyclip/motorcortex-sounddrag.git"},"author":{"name":"Donkeyclip","email":"opensource@donkeyclip.com","url":"donkeyclip.com"},"bugs":{"url":"https://github.com/donkeyclip/motorcortex-sounddrag/issues"},"license":"MIT","readme":"# MotorCortex-SoundDrag\n\n**Table of Contents**\n\n- [MotorCortex-SoundDrag](#motorcortex-sounddrag)\n  - [Demo](#demo)\n- [Intro / Features](#intro--features)\n- [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Importing and Loading](#importing-and-loading)\n- [Creating Incidents](#creating-incidents)\n  - [Track](#track)\n  - [Extra Effects](#extra-effects-with-audioeffect)\n- [Adding Incidents in your clip](#adding-incidents-in-your-clip)\n- [Contributing](#contributing)\n- [License](#license)\n- [Sponsored by](#sponsored-by)\n\n## Demo\n\n[Check it out here](https://donkeyclip.github.io/motorcortex-sounddrag/demo/)\n\n# Intro / Features\n\nThe MotorCortex-SoundDrag is a plugin that allows you to add music or sound effects easily to your clips.\nGo to [sounds.donkeyclip.com](https://sounds.donkeyclip.com/) find the sound you like to use from a big list of license-free sounds and copy the name of the sound. Then create a new track incident and use the copied name as the value for the attribute key name and you have done.\n\n\n# Getting Started\n## Installation\n\n```bash\n$ npm install --save @donkeyclip/motorcortex-sounddrag\n# OR\n$ yarn add @donkeyclip/motorcortex-sounddrag\n```\n\n## Importing and loading\n\n```javascript\nimport { loadPlugin } from \"@donkeyclip/motorcortex/\";\nimport SoundDragPlugin from \"@donkeyclip/motorcortex-sounddrag\";\nconst SoundDrag = loadPlugin(SoundDragPlugin);\n```\n\n# Creating Incidents\n## Track\n\n```javascript\nconst newHTMLClip = new SoundDrag.Track(\n  {\n    name: \"Electronic-Violin_16057\",\n    startFrom: 0,\n    duration: 2000,\n    fadeIn: false,\n    fadeOut: false,\n  },\n  {\n    repeats: 3,\n    hiatus: 1000,\n    delay: 1000,\n    id: \"myClip\",\n  }\n);\n```\n\n### Track Attrs\n\n| Name      |                       Are                       |  Values |\n| --------- | :---------------------------------------------: | ------: |\n| name      | name of the sound from donkeyclip.sounddrag.com |   sting |\n| startFrom |      millisecond which sound start playing      |     num |\n| duration  |        for how long the sound will play         |     num |\n| fadeIn    |       this will enable the fadein effect        | boolean |\n| fadeOut   |       this will enable the fadeout effect       | boolean |\n\n## Extra Effects with AudioEffect\nIf `fadeIn` and `fadeOut` effects are not enough for you, you can create your effects using MotorCortex [AudioEffect](https://docs.motorcortexjs.com/sound/audio-incidents#audioeffect) to apply your custom effect you need an id to select the Audio source this id is \"track-id\"\nand then add the incident to the track incident.\n#### Example\n\n```javascript\nconst MyEffect = new AudioEffect(\n  {\n    animatedAttrs: {\n      pan: 1,\n      gain: 0,\n    },\n  },\n  {\n    selector: \"~#track-id\",\n    duration: 3000,\n  }\n);\n\ntrackIncident.addIncident(MyEffect, 1000);\n```\n\n#### IMPORTANT\nYou should import AudioEffect from MotorCortex.\n```javascript\nimport { AudioEffect } from \"@donkeyclip/motorcortex\";\n```\n# Adding Incidents in your clip\n\n```javascript\nclipName.addIncident(incidentName,startTime);\n```\n\n# Contributing \n\nIn general, we follow the \"fork-and-pull\" Git workflow, so if you want to submit patches and additions you should follow the next steps:\n1.\t**Fork** the repo on GitHub\n2.\t**Clone** the project to your own machine\n3.\t**Commit** changes to your own branch\n4.\t**Push** your work back up to your fork\n5.\tSubmit a **Pull request** so that we can review your changes\n\n# License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n# Sponsored by\n[<img src=\"https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg\" width=250></img>](https://donkeyclip.com)\n","readmeFilename":"README.md"}